-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from navigating-stories/useful-defaults
add error when input channel is not corpus
- Loading branch information
Showing
4 changed files
with
140 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"Define error messages to be used in the Actor and Action analysis" | ||
|
||
from Orange.widgets.widget import Msg | ||
|
||
msg_wrong_input_for_stories = ( | ||
"Wrong input to `Stories`. " | ||
"The input to `Story elements` needs to be a `Table`. \n" | ||
"The input to `Stories` needs to be a `Corpus`." | ||
) | ||
|
||
msg_wrong_input_for_elements = ( | ||
"Wrong input to `Story elements`. " | ||
"The input to `Story elements` needs to be a `Table`. \n" | ||
"The input to `Stories` needs to be a `Corpus`." | ||
) | ||
|
||
msg_wrong_story_input_for_elements = ( | ||
"Wrong input to `Stories`. " | ||
"The input to `Stories` needs to be a `Corpus`. \n" | ||
"The input to `Custom tags` needs to be a `Table`." | ||
) | ||
|
||
msg_residual_error = ( | ||
"Could not process data. Check the inputs to the widget." | ||
) | ||
|
||
wrong_input_for_stories = Msg(msg_wrong_input_for_stories) | ||
residual_error = Msg(msg_residual_error) | ||
wrong_input_for_elements = Msg(msg_wrong_input_for_elements) | ||
wrong_story_input_for_elements = Msg(msg_wrong_story_input_for_elements) | ||
|
||
|
||
__all__ = [ | ||
"wrong_input_for_stories", "wrong_input_for_elements", "residual_error" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters