Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProblem with deps and Null Nodes #62
Comments
|
Thanks for the bugreport. This seems possible (empty nodes and enhanced deps are not well tested). Can you send a PR, please? |
|
Sure! I'll work on it. |
If you create an Empty Node with a decimal
ord(e.g. 17.1) and set deps to it with something like:n.deps.append({'parent': empty, 'deprel': 'dep'}, only the whole part of the float is serialized by the CoNLL-U writer. Therefore, the wrong secondary edge is created in the CoNLL-U output (17:dep, instead of 17.1:dep).I suspect the problem is in the
raw_depsattribute of the Node class, lines 197-199:as
%dwill only return a whole number.Thanks!