Closed f-hafner closed 5 months ago
This can be solved definitely. It seems possible to disable inputs / outputs based on incompatibility of types or some condition. See the screenshot below. But I don't know where exactly in the source code to find this functionality. Needs some investigation. [
](url)
Code could be in Orange itself (not necessarily only in Network add-on). Could also be in other Orange add-ons / widgets.
I have looked around and tried some things, but have not worked it out.
Table
widget -- so it seems like a common underlying behavior across widgets which we for some reason have not managed to achieve.Table
widget and the Network Explorer
widgets, but don't see how they get to this behavior.it seems the behavior in the screenshot above for the network explorer widget stems from Orange's built-in type checking: Orange only lets the user connect input and outputs of the same type.
It turns out that Corpus
-- the type input of the Stories
input for the Actor Analysis and Action Analysis widgets -- is a subclass of Table
: https://github.com/biolab/orange3-text/blob/f73d42fef394f91f5810373ec38a13e1d015e41b/orangecontrib/text/corpus.py#L47
Thus, the Table
output from the tagger is consistent with the Corpus
type for the Stories
input.
We discussed two options to solve the problem
When creating an
Actors
widget:Import Documents
, I get suggested to link "Corpus -> Stories", which is correct. (see screenshot case 1)Elements
widget is first linked to a table widget, and then the table widget is linked to anActors
widget (case 3)It would be nice if to have the right defaults also for the second and third case.
case 1:
case 2:
case 3: