We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84741a commit 16c3a48Copy full SHA for 16c3a48
1 file changed
udapi/block/corefud/removenocorefentities.py
@@ -18,4 +18,4 @@ def process_document(self, doc):
18
entities = doc.coref_entities
19
if not entities:
20
return
21
- doc.coref_entities = [e for e in entities if not re.match(r'^NOCOREF', e.eid)]
+ doc._eid_to_entity = {e._eid: e for e in entities if not re.match(r'^NOCOREF', e.eid)}
0 commit comments