Exemple #1
0
 def test_ttr(self):
     # Assert type-token ratio: words = 7, unique words = 6.
     s = "The black cat \n sat on the mat."
     v = metrics.ttr(s)
     self.assertAlmostEqual(v, 0.86, places=2)
     print("pattern.metrics.ttr()")
 def test_ttr(self):
     # Assert type-token ratio: words = 7, unique words = 6.
     s = "The black cat \n sat on the mat."
     v = metrics.ttr(s)
     self.assertAlmostEqual(v, 0.86, places=2)
     print("pattern.metrics.ttr()")