Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move corpus classes/utilities to gensim.corpora #2970

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/auto_examples/tutorials/run_annoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#
# For more details, see :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py`.
from gensim.models import Word2Vec, KeyedVectors
from gensim.models.word2vec import Text8Corpus
from gensim.corpora.text8corpus import Text8Corpus

# Using params from Word2Vec_FastText_Comparison
params = {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/auto_examples/tutorials/run_annoy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ For more details, see :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py`.
.. code-block:: default

from gensim.models import Word2Vec, KeyedVectors
from gensim.models.word2vec import Text8Corpus
from gensim.corpora.text8corpus import Text8Corpus

# Using params from Word2Vec_FastText_Comparison
params = {
Expand Down
9 changes: 9 additions & 0 deletions docs/src/corpora/browncorpus.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:mod:`corpora.browncorpus` -- Implements BrownCorpus and TaggedBrownCorpus
==========================================================================

.. automodule:: gensim.corpora.browncorpus
:synopsis: Implements BrownCorpus and TaggedBrownCorpus
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions docs/src/corpora/linesentence.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:mod:`corpora.linesentence` -- Implements LineSentence and PathLineSentences
============================================================================

.. automodule:: gensim.corpora.linesentence
:synopsis: Implements LineSentence and PathLineSentences
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions docs/src/corpora/taggeddocument.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:mod:`corpora.taggeddocument` -- Implements TaggedDocument and TaggedLineDocument
=================================================================================

.. automodule:: gensim.corpora.taggeddocument
:synopsis: Implements TaggedDocument and TaggedLineDocument
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
9 changes: 9 additions & 0 deletions docs/src/corpora/text8corpus.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:mod:`corpora.text8corpus` -- Implements Text8Corpus
====================================================

.. automodule:: gensim.corpora.text8corpus
:synopsis: Implements Text8Corpus
:members:
:inherited-members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/src/gallery/tutorials/run_annoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#
# For more details, see :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py`.
from gensim.models import Word2Vec, KeyedVectors
from gensim.models.word2vec import Text8Corpus
from gensim.corpora.text8corpus import Text8Corpus

# Using params from Word2Vec_FastText_Comparison
params = {
Expand Down
Loading