Exemplo n.º 1
0
 def test_most_common_without_n(self):
     texts = [[
         'human', 'human', 'human', 'computer', 'computer', 'interface',
         'interface'
     ]]
     d = Dictionary(texts)
     expected = [('human', 3), ('computer', 2), ('interface', 2)]
     assert d.most_common(n=None) == expected