예제 #1
0
 def test_concordance_output(self):
     model = ConcordanceModel()
     model.set_word("of", DummyState)
     model.set_corpus(self.corpus)
     output = model.get_data()
     self.assertEqual(len(output), 7)
     self.assertEqual(len(output.text_features), 1)
     self.assertTrue(output.text_features[0].name.startswith('Conc. of'))
예제 #2
0
 def test_concordance_output(self):
     model = ConcordanceModel()
     model.set_word("of")
     model.set_corpus(self.corpus)
     self.assertEqual(len(model.get_data()), 7)
 def test_concordance_output(self):
     model = ConcordanceModel()
     model.set_word("of")
     model.set_corpus(self.corpus)
     self.assertEqual(len(model.get_data()), 7)