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

Exception when right-clicking a node to expand subtrees #50

Open
nschneid opened this issue Aug 2, 2024 · 0 comments
Open

Exception when right-clicking a node to expand subtrees #50

nschneid opened this issue Aug 2, 2024 · 0 comments

Comments

@nschneid
Copy link
Owner

nschneid commented Aug 2, 2024

Exception: in worker process
Traceback (most recent call last):
File "/Users/nathan/dev/nlp-tools/activedop/nssenv/lib/python3.11/site-packages/disco_dop-0.6a0-py3.11-macosx-13-x86_64.egg/discodop/util.py", line 36, in wrapper
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/Users/nathan/dev/nlp-tools/activedop-brandon/worker.py", line 52, in getparses
results = list(PARSER.parse(
^^^^^^^^^^^^^^^^^^
File "/Users/nathan/dev/nlp-tools/activedop/nssenv/lib/python3.11/site-packages/disco_dop-0.6a0-py3.11-macosx-13-x86_64.egg/discodop/parser.py", line 347, in parse
chart, msg1 = plcfrs.parse(
^^^^^^^^^^^^^
File "discodop/plcfrs.pyx", line 345, in discodop.plcfrs.parse
File "discodop/plcfrs.pyx", line 62, in discodop.plcfrs.SmallLCFRSChart.init
File "discodop/plcfrs.pyx", line 27, in discodop.plcfrs.LCFRSChart.init
File "discodop/containers.pyx", line 292, in discodop.containers.StringIntDict.getitem
KeyError: 'PP-Obj'

I think this means the category-function combination has not been seen by the grammar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant