Skip to content

Commit

Permalink
appropriate class name
Browse files Browse the repository at this point in the history
  • Loading branch information
markroxor committed Oct 13, 2016
1 parent c9daa62 commit 55d8f8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gensim/models/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class BaseModel():
class BaseTopicModel():
def print_topic(self, topicno, topn=10):
"""
Return a single topic as a formatted string. See `show_topic()` for parameters.
Expand Down
3 changes: 1 addition & 2 deletions gensim/models/ldamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ def get_Elogbeta(self):
return dirichlet_expectation(self.get_lambda())
# endclass LdaState


class LdaModel(interfaces.TransformationABC,base.BaseModel):
class LdaModel(interfaces.TransformationABC,base.BaseTopicModel):
"""
The constructor estimates Latent Dirichlet Allocation model parameters based
on a training corpus:
Expand Down
2 changes: 1 addition & 1 deletion gensim/models/lsimodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def merge(self, other, decay=1.0):
#endclass Projection


class LsiModel(interfaces.TransformationABC,base.BaseModel):
class LsiModel(interfaces.TransformationABC,base.BaseTopicModel):
"""
Objects of this class allow building and maintaining a model for Latent
Semantic Indexing (also known as Latent Semantic Analysis).
Expand Down

0 comments on commit 55d8f8d

Please sign in to comment.