Skip to content

Commit

Permalink
Merge pull request #322 from jerneju/topicmodelling-all-topics
Browse files Browse the repository at this point in the history
[FIX] Topic Modelling: do not call get all topics table when no corpus
  • Loading branch information
nikicc authored Nov 3, 2017
2 parents bd8d9ac + 4a6b620 commit 162a1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/text/widgets/owtopicmodeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ def on_start(self):
def on_result(self, corpus):
self.progressBarFinished(None)
self.Outputs.corpus.send(corpus)
self.Outputs.all_topics.send(self.model.get_all_topics_table())
if corpus is None:
self.topic_desc.clear()
self.Outputs.selected_topic.send(None)
self.Outputs.all_topics.send(None)
else:
self.topic_desc.show_model(self.model)
self.Outputs.all_topics.send(self.model.get_all_topics_table())

@learning_task.callback
def on_progress(self, p):
Expand Down

0 comments on commit 162a1a2

Please sign in to comment.