Esempio n. 1
0
 def test_get_lexical_diversity_dictionary(self):
     book = Book(title='t',
                 author='a',
                 year_published=1,
                 content_path='/tmp/mauve_tok')
     self.assertEquals(
         1 / 2., book.get_lexical_diversity(only_dictionary_words=True))
Esempio n. 2
0
 def test_get_lexical_diversity_2(self):
     book = Book(title='t',
                 author='a',
                 year_published=1,
                 content_path='/tmp/mauve_tok')
     self.assertEquals(1 / 3., book.get_lexical_diversity())