Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Dec 2, 2019
2 parents b90923c + 5705c71 commit 339db28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ktrain/text/eda.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def train(self,texts, n_topics=None, n_features=10000,
for t in texts:
text_list.append(' '.join(jieba.cut(t, HMM=False)))
texts = text_list
if self.verbose: print('lang: %s' % (lang))


# preprocess texts
Expand Down
5 changes: 3 additions & 2 deletions tutorial-05-learning_from_unlabeled_text_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"output_type": "stream",
"text": [
"n_topics automatically set to 97\n",
"lang: en\n",
"preprocessing texts...\n",
"fitting model...\n",
"iteration: 1 of max_iter: 5\n",
Expand All @@ -135,8 +136,8 @@
"iteration: 4 of max_iter: 5\n",
"iteration: 5 of max_iter: 5\n",
"done.\n",
"CPU times: user 16min 47s, sys: 43min 53s, total: 1h 41s\n",
"Wall time: 2min 2s\n"
"CPU times: user 16min 36s, sys: 43min 11s, total: 59min 47s\n",
"Wall time: 2min\n"
]
}
],
Expand Down

0 comments on commit 339db28

Please sign in to comment.