Skip to content

Commit 16c3a48

Browse files
committed
Another method of removing entities.
1 parent e84741a commit 16c3a48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

udapi/block/corefud/removenocorefentities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def process_document(self, doc):
1818
entities = doc.coref_entities
1919
if not entities:
2020
return
21-
doc.coref_entities = [e for e in entities if not re.match(r'^NOCOREF', e.eid)]
21+
doc._eid_to_entity = {e._eid: e for e in entities if not re.match(r'^NOCOREF', e.eid)}

0 commit comments

Comments
 (0)