Skip to content

Commit

Permalink
Less iterations in doctest and fix #34
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Dec 21, 2017
1 parent 1bd4652 commit e9ff28b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dariah_topics/mallet.py
Expand Up @@ -383,7 +383,9 @@ def train_topics(self, mallet_binary, cleanup=False, **kwargs):
>>> document_labels = ['document_label']
>>> Mallet = Mallet(corpus_output='.')
>>> mallet_corpus = Mallet.import_tokenized_corpus(tokenized_corpus, document_labels)
>>> mallet_topics = Mallet.train_topics(mallet_corpus, output_model='model.mallet')
>>> mallet_topics = Mallet.train_topics(mallet_corpus,
... output_model='model.mallet',
... num_iterations=10)
>>> os.path.exists('model.mallet')
True
"""
Expand Down

0 comments on commit e9ff28b

Please sign in to comment.