nschneid / activedop

A treebank annotation tool based on a statistical parser that is re-trained during annotation
GNU General Public License v2.0
2 stars 1 forks source link

[Brandon's master branch] error on edit #24

Open nschneid opened 1 month ago

nschneid commented 1 month ago

"Rule 2002(a) and this rule" sentence: clicking "edit" causes an error

File "..<site-packages>../discodop/tree.py", line 1080, in __init__
    self.nodes, self.coords, self.edges, self.labels = self.nodecoords(
                                                       ^^^^^^^^^^^^^^^^
  File "..<site-packages>../discodop/tree.py", line 1187, in nodecoords
    raise ValueError(
ValueError: Non-terminals must dominate one or more leaves
bwaldon commented 1 month ago

This error arose because I wasn't properly escaping ( and ) - should be addressed by https://github.com/bwaldon/activedop/commit/564eb12a21572c41e8ec574bb9bfee917b877ce6

nschneid commented 1 month ago

WFM. Will close when merged into the main repo