Skip to content

Commit

Permalink
Score documents
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Mar 18, 2021
1 parent c8f807b commit 87c48ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orangecontrib/text/widgets/owdocumentscorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def set_data(self, corpus: Corpus):

@Inputs.words
def set_words(self, words: Table):
# todo: handle case when no type=words
if words is not None:
self.Warning.missing_words.clear()
words_attr = next(
Expand Down Expand Up @@ -297,7 +298,8 @@ def _fill_and_output(self):
def _clear(self):
self.scores = {}
self.cancel()
self._fill_and_output()
if self.corpus is not None:
self._fill_and_output()
self.commit()

def _setting_changed(self):
Expand Down

0 comments on commit 87c48ed

Please sign in to comment.