Closed martinpopel closed 2 years ago
CorefCluster
CorefEntity
mention.cluster
mention.entity
cluster.cluster_id
entity.eid
cluster.cluster_type
entity.etype
for cluster in doc.coref_clusters.values():
for entity in doc.coref_entities:
for cluster_id, cluster in data.coref_clusters.items():
for eid, entity in doc.eid_to_entity:
process_coref_mention
process_coref_entity
CorefCluster
->CorefEntity
mention.cluster
->mention.entity
cluster.cluster_id
->entity.eid
cluster.cluster_type
->entity.etype
for cluster in doc.coref_clusters.values():
->for entity in doc.coref_entities:
for cluster_id, cluster in data.coref_clusters.items():
->for eid, entity in doc.eid_to_entity:
process_coref_mention
andprocess_coref_entity