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

When cgel validator is on, edit trees in native cgel format #15

Open bwaldon opened 6 days ago

bwaldon commented 6 days ago

Implemented in https://github.com/bwaldon/activedop/commit/9babd48b96c81b7782d5fb9d806107147c77d1fd

In edit mode, the text box displays the tree in native cgel format (rather than discbracket). Edit the tree directly in the text box (and click 'validate' to change the graphical representation), or do graphical edits like drag and drop (changes are automatically reflected in the text box).

Todo: allow users to add extra tags (e.g., :note to terminal nodes in the text box). (As of right now, those tags get deleted after a graphical edit).

bwaldon commented 6 days ago

(Requires import of ParentedTree from discodop.tree, see https://github.com/bwaldon/activedop/commit/e0cbd40239e442d8fec2d4031fd2559b5f91db75)