-
Notifications
You must be signed in to change notification settings - Fork 33
Coref: Bridging and SplitAnte #76
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
Conversation
Otherwise, the mention is not reachable via `head.coref_mentions` and `len(mention.words) == 0`, which is both misleading.
We cannot access src_mention.head.root.coref_clusters when loading Bridging because these are not ready yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems OK to me.
udapi/core/coref.py
Outdated
|
||
|
||
class BridgingLinks(collections.abc.MutableSequence): | ||
"""BridgingLinks class serves as a list of BridgingLinks tuples with additional methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BridgingLink tuples
udapi/core/coref.py
Outdated
@property | ||
def bridging(self): | ||
if self._bridging: | ||
return self._bridging | ||
self._bridging = BridgingLinks(self) | ||
return self._bridging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't we agreed that although the CoNLL-U representation of bridging will be a mention-to-cluster link, we should talk about it as a cluster-to-cluster relation and the same should hold for API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently our agreement was mention-to-cluster, as you've implemented CorefCluster.all_bridging
. Nevertheless, the reasons why we have decided to represent it as neither mention-to-mention nor for cluster-to-cluster, but mention-to-cluster, should be explained in the report.
No description provided.