File ".../activedop/app.py", line 1061, in replacesubtree
treeobj = ActivedopTree(ptree = ptree, senttok = treeobj.senttok,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../activedop/activedoptree.py", line 101, in __init__
self.cgel_tree.update_terminals(cgel_tree_terminals, gaps=True, restore_old_cat=True, restore_old_func=True, restore_old_label=True)
File ".../activedop/./cgel/cgel.py", line 508, in update_terminals
for i,newterm in zip(offsets, newterminals, strict=True):
ValueError: zip() argument 2 is shorter than argument 1
This may be because I stripped punctuation that was causing parser problems from the input and added it manually in the CGEL format. If altering the tokenization/punctuation is forbidden, there should be an error message explaining this.
Steps to reproduce:
Input the sentence The term motor vehicle means any vehicle which is manufactured primarily for use on public streets , roads , and highways -LRB- not including a vehicle operated exclusively on a rail or rails -RRB- and which has at least 4 wheels .
In edit mode, input the contents of badtree.txt and click Validate.
Right-click the Nom spanning “ motor vehicle ” to expand parse candidates.
This may be because I stripped punctuation that was causing parser problems from the input and added it manually in the CGEL format. If altering the tokenization/punctuation is forbidden, there should be an error message explaining this.
Steps to reproduce:
The term motor vehicle means any vehicle which is manufactured primarily for use on public streets , roads , and highways -LRB- not including a vehicle operated exclusively on a rail or rails -RRB- and which has at least 4 wheels .