Skip to content

Commit

Permalink
fix - corpus summarize for case when orange-widget-base support autom…
Browse files Browse the repository at this point in the history
…ates summaries but Table not
  • Loading branch information
PrimozGodec committed Nov 18, 2021
1 parent 1a568e0 commit 498bdbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions orangecontrib/text/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@

try:
from orangewidget.utils.signals import summarize, PartialSummary
# import to check if Table summary is available
from Orange.widgets.utils import state_summary
# import to check if Table summary is available - if summarize_by_name does
# not exist Orange (3.28) does not support automated summaries
from Orange.widgets.utils.state_summary import summarize_by_name
except ImportError:
summarize, PartialSummary = None, None

Expand Down

0 comments on commit 498bdbd

Please sign in to comment.