Пример #1
0
 def test_make_ngram_counts(self):
     self.assertEqual(sum(summarize.make_ngram_counts('abcdefg')), 4)
     self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg')), 4)
     self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg\u2006')), 5)
Пример #2
0
	def test_make_ngram_counts(self):
		self.assertEqual(sum(summarize.make_ngram_counts('abcdefg')), 4)
		self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg')), 4)
		self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg\u2006')), 5)