Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it legal to have parallel edges with different edeprels in the enhanced graph? #1081

Open
nschneid opened this issue Feb 9, 2025 · 2 comments

Comments

@nschneid
Copy link
Contributor

nschneid commented Feb 9, 2025

I am asking, as a matter of the CoNLL-U format, whether there can be enhanced edges sharing the same source and target: X-[E:rel1]->Y and X-[E:rel2]->Y.

I don't see it spelled out here one way or another (whether the contents of a DEPS field must have unique head indices). I presume the exact same edge cannot be duplicated.

At least some tools for reading .conllu files require unique head indices: Arborator/arborator-frontend#433 (comment)

@dan-zeman
Copy link
Member

I consider it legal when writing code that processes CoNLL-U and I believe the validator will not complain about it.* Strictly speaking it could be problematic if we cannot find an example where this results from one of the six officially defined enhancements or their combination (as the guidelines also say that released treebanks should not contain other enhancements). But technically it is not a problem.

*) I agree with you that repeating the same relation with the same label should be forbidden; there is no point in having multiple copies of the same edge. I don't remember whether the current validator flags it as an error. But I'm pretty sure it has some other restrictions on the enhanced graph, e.g., self-loops are not allowed.

@nschneid
Copy link
Contributor Author

Added a sentence in the docs about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants