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

Refactor docstrings for gensim.scripts. Partial fix #1665 #1792

Merged
merged 13 commits into from
Feb 9, 2018

Conversation

yurkai
Copy link
Contributor

@yurkai yurkai commented Dec 15, 2017

Hi,

here's docstrings for scripts #1665

  • gensim/scripts/glove2word2vec.py
  • gensim/scripts/make_wikicorpus.py
  • gensim/scripts/word2vec2tensor.py

I'm not sure about docstring format. So let's find appropriate way to doc scripts and fix it.

@menshikh-iv menshikh-iv added this to To Do in Documentation via automation Dec 21, 2017
@menshikh-iv menshikh-iv moved this from To Do to In Progress (common) in Documentation Dec 21, 2017
@menshikh-iv menshikh-iv moved this from In Progress (common) to Yuri (in progress) in Documentation Dec 21, 2017
Copy link
Contributor

@menshikh-iv menshikh-iv left a 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.

Parameters
----------
GloVe_file : str
Input file in GloVe format.
Copy link
Contributor

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"

word2vec_file : str
Output filename to be converted in word2vec format.

Produces
Copy link
Contributor

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>
Copy link
Contributor

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

@menshikh-iv menshikh-iv changed the title docstrings for gensim/scripts, fix # 1665 Refactor docstrings for gensim.scripts. Fix #1665 Feb 1, 2018
@menshikh-iv menshikh-iv changed the title Refactor docstrings for gensim.scripts. Fix #1665 Refactor docstrings for gensim.scripts. Partial fix #1665 Feb 8, 2018
@menshikh-iv menshikh-iv merged commit 117d447 into piskvorky:develop Feb 9, 2018
Documentation automation moved this from Yuri (in progress) to Done Feb 9, 2018
sj29-innovate pushed a commit to sj29-innovate/gensim that referenced this pull request Feb 21, 2018
…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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Documentation
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants