Skip to content

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

Merged
merged 8 commits into from
Feb 28, 2021
Merged

Coref: Bridging and SplitAnte #76

merged 8 commits into from
Feb 28, 2021

Conversation

martinpopel
Copy link
Contributor

No description provided.

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.
Copy link
Contributor

@michnov michnov left a 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.



class BridgingLinks(collections.abc.MutableSequence):
"""BridgingLinks class serves as a list of BridgingLinks tuples with additional methods.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BridgingLink tuples

Comment on lines 61 to 66
@property
def bridging(self):
if self._bridging:
return self._bridging
self._bridging = BridgingLinks(self)
return self._bridging
Copy link
Contributor

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?

Copy link
Contributor

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.

@martinpopel martinpopel merged commit 0e27217 into master Feb 28, 2021
@martinpopel martinpopel deleted the coref branch February 28, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants