-
-
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 documentation for gensim.models.coherencemodel
.
#1933
Conversation
gensim/models/coherencemodel.py
Outdated
@@ -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, |
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.
Useless construction, better to show it as example (not list some methods)
gensim/models/coherencemodel.py
Outdated
@@ -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) |
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.
why?
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.
Looks like misclick, will be fixed in next commit.
gensim/models/coherencemodel.py
Outdated
the four stage topic coherence pipeline from the paper [1]_. | ||
|
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.
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