You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error parsing the pet/qc.tdl file of the ERG, and the error message isn't terribly indicative of the problem:
>>> from delphin import tdl
>>> list(tdl.iterparse('pet/qc.tdl'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
[...]
File "/home/goodmami/delphin/pydelphin/delphin/tdl.py", line 207, in __setitem__
super(AVM, self).__setitem__(key, val)
File "/home/goodmami/delphin/pydelphin/delphin/tfs.py", line 58, in __setitem__
subdef[subkeys[1]] = val
TypeError: 'String' object does not support item assignment
If there's a problem with the TDL there should be a TDLSyntaxError.
The text was updated successfully, but these errors were encountered:
The value of ARGS.SYNSEM.LOCAL.CAT.HEAD is the string "0", but in the fourth feature path it is treated as a sub-AVM in ARGS.SYNSEM.LOCAL.CAT.HEAD.MOD. These wouldn't unify, so I think this file is processed specially by PET.
I think an appropriate fix, then, is to return a more useful error message.
I'm getting an error parsing the pet/qc.tdl file of the ERG, and the error message isn't terribly indicative of the problem:
If there's a problem with the TDL there should be a TDLSyntaxError.
The text was updated successfully, but these errors were encountered: