6aaeb70670d4540900e55f4ac532546656447bd2,allennlp/models/semantic_parsing/nlvr/nlvr_direct_semantic_parser.py,NlvrDirectSemanticParser,from_params,#Any#Any#Any#,179
Before Change
action_embedding_dim = params.pop_int("action_embedding_dim")
encoder = Seq2SeqEncoder.from_params(params.pop("encoder"))
dropout = params.pop_float("dropout", 0.0)
attention_function_type = params.pop("attention_function", None)
if attention_function_type is not None:
attention_function = SimilarityFunction.from_params(attention_function_type)
else:
attention_function = None
decoder_beam_search = BeamSearch.from_params(params.pop("decoder_beam_search"))
max_decoding_steps = params.pop_int("max_decoding_steps")
params.assert_empty(cls.__name__)
return cls(vocab,
After Change
action_embedding_dim = params.pop_int("action_embedding_dim")
encoder = Seq2SeqEncoder.from_params(params.pop("encoder"))
dropout = params.pop_float("dropout", 0.0)
input_attention = Attention.from_params(params.pop("attention"))
decoder_beam_search = BeamSearch.from_params(params.pop("decoder_beam_search"))
max_decoding_steps = params.pop_int("max_decoding_steps")
params.assert_empty(cls.__name__)
return cls(vocab,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: allenai/allennlp
Commit Name: 6aaeb70670d4540900e55f4ac532546656447bd2
Time: 2018-06-07
Author: mattg@allenai.org
File Name: allennlp/models/semantic_parsing/nlvr/nlvr_direct_semantic_parser.py
Class Name: NlvrDirectSemanticParser
Method Name: from_params
Project Name: allenai/allennlp
Commit Name: 6aaeb70670d4540900e55f4ac532546656447bd2
Time: 2018-06-07
Author: mattg@allenai.org
File Name: allennlp/models/semantic_parsing/wikitables/wikitables_mml_semantic_parser.py
Class Name: WikiTablesMmlSemanticParser
Method Name: from_params
Project Name: allenai/allennlp
Commit Name: 6aaeb70670d4540900e55f4ac532546656447bd2
Time: 2018-06-07
Author: mattg@allenai.org
File Name: allennlp/models/semantic_parsing/wikitables/wikitables_erm_semantic_parser.py
Class Name: WikiTablesErmSemanticParser
Method Name: from_params
Project Name: allenai/allennlp
Commit Name: 6aaeb70670d4540900e55f4ac532546656447bd2
Time: 2018-06-07
Author: mattg@allenai.org
File Name: allennlp/models/semantic_parsing/nlvr/nlvr_coverage_semantic_parser.py
Class Name: NlvrCoverageSemanticParser
Method Name: from_params