Skip to content

Commit

Permalink
improve train() corpus_iterable parameter doc-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gojomo committed Sep 16, 2020
1 parent 19cf200 commit 2387b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/models/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ def train(self, corpus_iterable=None, corpus_file=None, total_examples=None, tot
Parameters
----------
corpus_iterable : iterable of list of str
The `sentences` iterable can be simply a list of lists of tokens, but for larger corpora,
consider an iterable that streams the sentences directly from disk/network.
The `corpus_iterable` can be simply a list of lists of tokens, but for larger corpora,
consider an iterable that streams the sentences directly from disk/network, to limit RAM usage.
See :class:`~gensim.models.word2vec.BrownCorpus`, :class:`~gensim.models.word2vec.Text8Corpus`
or :class:`~gensim.models.word2vec.LineSentence` in :mod:`~gensim.models.word2vec` module for such examples.
See also the `tutorial on data streaming in Python
Expand Down

0 comments on commit 2387b5d

Please sign in to comment.