Skip to content
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 indirect_quote_exception_annotator.py #33

Closed
shirayu opened this issue Jul 28, 2021 · 0 comments
Closed

KeyError in indirect_quote_exception_annotator.py #33

shirayu opened this issue Jul 28, 2021 · 0 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@shirayu
Copy link
Contributor

shirayu commented Jul 28, 2021

  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/bunkai_sbd.py", line 89, in __call__
    annotations = self.eos(text)
  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/bunkai_sbd.py", line 79, in eos
    rule_obj.annotate(text, annotations)
  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/annotator/indirect_quote_exception_annotator.py", line 137, in a
nnotate
    index2token_obj=index2token_obj):
  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/annotator/indirect_quote_exception_annotator.py", line 101, in i
s_exception_particle
    for rule_object in MORPHEMES_AFTER_CANDIDATE]):
  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/annotator/indirect_quote_exception_annotator.py", line 101, in <
listcomp>
    for rule_object in MORPHEMES_AFTER_CANDIDATE]):
  File "/path/to/work/.venv/lib/python3.7/site-packages/bunkai/algorithm/bunkai_sbd/annotator/indirect_quote_exception_annotator.py", line 45, in is
_rule_valid
    if self.rule_word_surface[i_rule_morpheme] != index2token_obj[__check].word_surface:
KeyError: 107747
@shirayu shirayu added the Type: Bug Bug or Bug fixes label Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant