b1b832a4e17ab084ac91c70268d1072d25db6cb7,allennlp/models/crf_tagger.py,CrfTagger,__init__,#CrfTagger#Any#Any#Any#Any#Any#Any#,39
Before Change
self.span_metric = SpanBasedF1Measure(vocab, tag_namespace=label_namespace)
if text_field_embedder.get_output_dim() != encoder.get_input_dim():
raise ConfigurationError("The output dimension of the text_field_embedder must match the "
"input dimension of the phrase_encoder. Found {} and {}, "
"respectively.".format(text_field_embedder.get_output_dim(),
encoder.get_input_dim()))
initializer(self)
@overrides
def forward(self, // type: ignore
After Change
self.span_metric = SpanBasedF1Measure(vocab, tag_namespace=label_namespace)
check_dimensions_match(text_field_embedder.get_output_dim(), encoder.get_input_dim(),
"text field embedding dim", "encoder input dim")
initializer(self)
@overrides
def forward(self, // type: ignore
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: allenai/allennlp
Commit Name: b1b832a4e17ab084ac91c70268d1072d25db6cb7
Time: 2018-01-02
Author: mattg@allenai.org
File Name: allennlp/models/crf_tagger.py
Class Name: CrfTagger
Method Name: __init__
Project Name: allenai/allennlp
Commit Name: b1b832a4e17ab084ac91c70268d1072d25db6cb7
Time: 2018-01-02
Author: mattg@allenai.org
File Name: allennlp/models/decomposable_attention.py
Class Name: DecomposableAttention
Method Name: __init__
Project Name: allenai/allennlp
Commit Name: b1b832a4e17ab084ac91c70268d1072d25db6cb7
Time: 2018-01-02
Author: mattg@allenai.org
File Name: allennlp/models/simple_tagger.py
Class Name: SimpleTagger
Method Name: __init__