def test_tagging_german(self): self.tagger = tagging.PosLemmaTagger(language=languages.GER) tagged_text = self.tagger.get_bigram_pair_string( 'Ich spreche nicht viel Deutsch.') self.assertEqual(tagged_text, 'VERB:deutsch')
def test_tagging_english(self): self.tagger = tagging.PosLemmaTagger(language=languages.ENG) tagged_text = self.tagger.get_bigram_pair_string( 'Hello, how are you doing on this awesome day?') self.assertEqual(tagged_text, 'INTJ:awesome ADJ:day')
def setUp(self): self.tagger = tagging.PosLemmaTagger()