def test_lemma_feature_extractor(self):

        utterance = self.tokenizer.tokenize("Names in English")
        field = KnowledgeGraphField(self.graph, self.utterance,
                                    self.token_indexers, self.tokenizer)
        entity = "string_column:name_in_english"
        lemma_feature = field._contains_lemma_match(
            entity, field._entity_text_map[entity], utterance[0], 0, utterance)
        assert lemma_feature == 1
 def test_lemma_feature_extractor(self):
     # pylint: disable=protected-access
     utterance = self.tokenizer.tokenize("Names in English")
     field = KnowledgeGraphField(self.graph, self.utterance,
                                 self.token_indexers, self.tokenizer)
     entity = 'fb:row.row.name_in_english'
     lemma_feature = field._contains_lemma_match(
         entity, field._entity_text_map[entity], utterance[0], 0, utterance)
     assert lemma_feature == 1
 def test_lemma_feature_extractor(self):
     # pylint: disable=protected-access
     utterance = self.tokenizer.tokenize("Names in English")
     field = KnowledgeGraphField(self.graph, self.utterance, self.token_indexers, self.tokenizer)
     entity = 'fb:row.row.name_in_english'
     lemma_feature = field._contains_lemma_match(entity,
                                                 field._entity_text_map[entity],
                                                 utterance[0],
                                                 0,
                                                 utterance)
     assert lemma_feature == 1