MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_dictionary

Method test_dictionary

tests/test_gensim.py:6–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TestGensim(unittest.TestCase):
6 def test_dictionary(self):
7 dic = corpora.Dictionary([['lorem', 'ipsum']])
8
9 self.assertEqual(2, len(dic.token2id))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected