Orange-OpenSource / conllueditor

ConllEditor is a tool to edit dependency syntax trees in CoNLL-U format.
BSD 3-Clause "New" or "Revised" License
54 stars 17 forks source link

modify in GUI gives: "INVALID command length «mod 1 »" #18

Closed robvanderg closed 2 years ago

robvanderg commented 2 years ago

When I select a token, and then click the modify button, I get the following error: INVALID command length «mod 1 »

Where the 1 is based on the index of the token.

jheinecke commented 2 years ago

Hi, sorry for the probably misleading documentation: the "modify" button is only needed to execute a command of the server API directly. This is not what you need here. To edit a token CTRL-click on the token and a menu sill open. To attach a token to another head, click the token and than the future head To make a token the root token, click twice on the token the commands for the "modify" button (I will rename it to "execute") executes commands for which no other ways exist, like joining two tokens or sentences into one, or to split a token or sentence

robvanderg commented 2 years ago

Thanks for your quick reply!,

So do I understand it correctly that there is currently no way to split or merge a token in the GUI (without using the commands)?

jheinecke commented 2 years ago

exactly. I have not had an idea how to do it elegantly. It is not an programming issue, but I'm looking for an easy to use way (where to click to split or join etc) to join a token with the following type "join 4" (4 is the id of the node to join) to split a token "split 4" (it will double the token and then you can modify form/lemma etc as needed. "split" accepts a third value, namely the character in the form where to split so id the token is "frontdoor" "split 4 5" will split it after the 5th letter. This does not always give the perfect results, since lemmas are split at the same position....

robvanderg commented 2 years ago

OK, Thanks again for the quick reply (and the great tool)!