-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error with ACE and --tsdb-stdout with long unparsable sentences #86
Comments
This was fixed in 8b2b664 |
Reopening because the fix doesn't work for some cases. E.g. (sentence taken from ws01 corpus of Redwoods):
Trying to parse this with PyDelphin's ACE interface gives this (largely uninformative) error:
At first glance, it seems that the items causing errors all have colons in them. |
This error seems to be sporadic, as the last time I tested it the symptoms didn't show. Nevertheless, I'll adjust the parsing behavior to be more defensive about this. |
When ACE v0.9.24 is installed, pyDelphin defaults to using the --tsdb-stdout option in order to get more information out of ACE. NOTEs and other messages to stderr are printed as normal. When a long unparsable sentence causes a NOTE to be generated, this message may be flushed to stderr before the stdout line has finished being written. Because pyDelphin interleaves stdout and stderr (in order to properly read the output; especially for generation), the NOTE on stderr makes the s-expression on stdout unreadable by pyDelphin.
Some solutions include:
--tsdb-stdout
is used--tsdb-stdout
is usedThe example sentence is:
It was parsed using a recent version of Zhong (the grammar at zhong/cmn/zhs/)
The text was updated successfully, but these errors were encountered: