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 28, 2020
1 parent 8f91267 commit a21cad6
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 @@ -953,8 +953,8 @@ def train(
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 a21cad6

Please sign in to comment.