You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Reduce non-determinism in which mention is removed:
28
+
# If the mentions belong to different entities, sort them by entity (cluster) ids.
29
+
ifmA.cluster.cluster_id>mB.cluster.cluster_id:
30
+
mX=mA
31
+
mA=mB
32
+
mB=mX
27
33
28
34
sA, sB=set(mA.words), set(mB.words)
29
35
ifsA!=sB:
@@ -40,6 +46,7 @@ def process_tree(self, tree):
40
46
# m.cluster = mA.cluster
41
47
# Remove mention B. It may have been removed earlier because of
42
48
# another duplicate, that is the purpose of try-except.
49
+
###!!! TODO: If we remove a singleton, we are destroying the cluster. Then we must also handle possible bridging and split antecedents pointing to that cluster!
0 commit comments