-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Score documents: Document selection and selection output #710
Conversation
29e9585
to
8186e3a
Compare
Codecov Report
@@ Coverage Diff @@
## master #710 +/- ##
==========================================
+ Coverage 74.09% 74.21% +0.11%
==========================================
Files 72 72
Lines 9489 9566 +77
Branches 1294 1304 +10
==========================================
+ Hits 7031 7099 +68
- Misses 2212 2220 +8
- Partials 246 247 +1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,6 +4,7 @@ | |||
from typing import List, Callable, Tuple, Union | |||
|
|||
import numpy as np | |||
from Orange.widgets.utils.annotated_data import create_annotated_table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nicer, if the imports were more structured.
Totally forgot that it would be nice if the selection is remembered. Will implement it
I do not like selection boxes too much, since users can easily do selection in the table itself, but if other widgets have them I can also implement it here.
I forgot to run isort on this one. Will fix it. |
2ea96df
to
f08bfaa
Compare
d4a8fd4
to
77d35b6
Compare
1407787
to
f38504a
Compare
@@ -183,12 +210,20 @@ def callback(i: float) -> None: | |||
state.set_partial_result((sm, aggregation, scs)) | |||
|
|||
|
|||
class SelectionMethods: | |||
NONE, ALL, MANUAL, N_BEST = range(4) | |||
ITEMS = "None", "All", "Manual", "Top words" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the widget scores the documents, Top words
should be renamed to Top documents
.
@@ -324,6 +369,31 @@ def _setup_control_area(self) -> None: | |||
gui.rubber(self.controlArea) | |||
gui.auto_send(self.buttonsArea, self, "auto_commit") | |||
|
|||
# select words box | |||
box = gui.vBox(self.controlArea, "Select Words") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Select Words
-> Select Documents
self.controlArea
-> self.buttonsArea
9d86427
to
d53604b
Compare
d53604b
to
b521d15
Compare
Issue
Score documents widget is missing selection
Description of changes
Implemented selection in the table view and the
Selected documents
outputIncludes