Skip to content

Commit

Permalink
Fix _save_corpus[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherbugmaster committed Nov 23, 2017
1 parent 34bd9ef commit 3b55037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gensim/models/wrappers/dtmmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def convert_input(self, corpus, time_slices):
"""
logger.info("serializing temporary corpus to %s", self.fcorpustxt())
# write out the corpus in a file format that DTM understands:
corpora.BleiCorpus.__save_corpus(self.fcorpustxt(), corpus)
corpora.BleiCorpus._save_corpus(self.fcorpustxt(), corpus)

with utils.smart_open(self.ftimeslices(), 'wb') as fout:
fout.write(utils.to_utf8(str(len(self.time_slices)) + "\n"))
Expand Down
2 changes: 1 addition & 1 deletion gensim/test/test_miislita.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_textcorpus(self):

# make sure serializing works
ftmp = get_tmpfile('test_textcorpus.mm')
corpora.MmCorpus.__save_corpus(ftmp, miislita)
corpora.MmCorpus._save_corpus(ftmp, miislita)
self.assertTrue(os.path.exists(ftmp))

# make sure deserializing gives the same result
Expand Down

0 comments on commit 3b55037

Please sign in to comment.