-
Notifications
You must be signed in to change notification settings - Fork 2
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
KeyError
in ActorAnalysis
#39
Comments
I suspect it has to do with the input text, since the same problem occurs for the same text in the actions widget |
Cannot reproduce. @f-hafner can we sit down together and try to reproduce this on my machine? |
It's specific to the dataset and a bit unpredictable. I can share inputs and workflows to reproduce. I no longer think that it has to do with the input text: when I changed the set of stories (but kept the ones where the error occurred), the error occurred elsewhere It's also doing something else I had not noticed: for some stories, the wrong text is shown in the actors widget -- ie, the text of Story A in the raw data is shown for story B (and for story B, it shows text of story C). But then, when I use the regexp filter, it shows the text from the right story. this is possibly related to #51 |
stack trace Traceback (most recent call last):
File "/home/flavio/repositories/projects/navigating-stories/orange-story-navigator/orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py", line 763, in selection_changed
self.show_docs()
File "/home/flavio/repositories/projects/navigating-stories/orange-story-navigator/orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py", line 803, in show_docs
self.story_elements_dict[str(c_index)]
KeyError: '16' next steps: print keys of story elements and see who and why the keys are changing, and why the key 16 is missing. |
We need to add debug points / print statements to check how the value of |
Should be fixed in #58. |
Story Navigator version
0.0.18 (commit 8732988)
Orange version
3.36.2
Expected behavior
Can display the actor analysis for story 28 (contact me for title) without error
Actual behavior
When clicking on the story, I get the following error:
Steps to reproduce the behavior
File
widget:dutch_halliday_action_list.csv
Import Documents
widget: subset of corona storiesElements
widget: languagenl
,custom tagscustom tagsrealm
word
, number of segments1
Additional info (worksheets, data, screenshots, ...)
The text was updated successfully, but these errors were encountered: