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 documentation for gensim.models.coherencemodel. #1933

Merged
merged 11 commits into from
Mar 13, 2018

Conversation

CLearERR
Copy link
Contributor

@@ -84,21 +84,23 @@ class CoherenceModel(interfaces.TransformationABC):

The main methods are:

1. constructor, which initializes the four stage pipeline by accepting a coherence measure,
2. the ``get_coherence()`` method, which returns the topic coherence.
1. Constructor, which initializes the four stage pipeline by accepting a coherence measure,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless construction, better to show it as example (not list some methods)

@@ -215,7 +218,7 @@ def __init__(self, model=None, topics=None, texts=None, corpus=None, dictionary=
self._topics = None
self.topics = topics

self.processes = processes if processes > 1 else max(1, mp.cpu_count() - 1)
self.processes = processes if processes >= 1 else max(1, mp.cpu_count() - 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like misclick, will be fixed in next commit.

the four stage topic coherence pipeline from the paper [1]_.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use

`some text <http://...>`_

instead of [1]_, because [num] can't be parsed correctly with autosummary plugin (this related to #1809), here and everywhere

@menshikh-iv menshikh-iv added incubator project PR is RaRe incubator project RFM labels Mar 5, 2018
@menshikh-iv menshikh-iv merged commit 132a1f1 into piskvorky:develop Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incubator project PR is RaRe incubator project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants