-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Refactor docstrings for gensim.scripts
. Partial fix #1665
#1792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start @yurkai! Please continue your work on it.
gensim/scripts/glove2word2vec.py
Outdated
Parameters | ||
---------- | ||
GloVe_file : str | ||
Input file in GloVe format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Input file" -> "Path to input file"
gensim/scripts/glove2word2vec.py
Outdated
word2vec_file : str | ||
Output filename to be converted in word2vec format. | ||
|
||
Produces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a valid section for sphinx?
@@ -5,18 +5,36 @@ | |||
# Copyright (C) 2016 Manas Ranjan Kar <manasrkar91@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at https://pythonhosted.org/sphinxcontrib-programoutput/, this should be helpful for documenting CLI applications 👍
Add it to current sphinx-build and test, how it works
gensim.scripts
. Fix #1665
…cs. setup.py and conf.py need to add sphinxcontrib.programoutput as new extension
gensim.scripts
. Fix #1665gensim.scripts
. Partial fix #1665
…iskvorky#1792) * drafts docstrings * docstrings added, Ivan need to check format * fixed links, headers, typos and etc * docstrings moved to scripts inside and appear as console output in docs. setup.py and conf.py need to add sphinxcontrib.programoutput as new extension * update configs with new extension sphinxcontrib.programoutput * fix doc[1] * finish with glove2word2vec (RawFormatter + examples) * more examples for glove2word2vec * simplify example for g2w2v + fix for w2v2t * fix segment_wiki * revert make_wikicorpus (should be fixed in refactoring) * revert [2]
Hi,
here's docstrings for scripts #1665
I'm not sure about docstring format. So let's find appropriate way to doc scripts and fix it.