Skip to content

Commit 7a8e2a3

Browse files
committed
Fix annotations reference in Adeft mapping
1 parent e934229 commit 7a8e2a3

File tree

1 file changed

+3
-3
lines changed
  • indra/preassembler/grounding_mapper

1 file changed

+3
-3
lines changed

indra/preassembler/grounding_mapper/adeft.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def run_adeft_disambiguation(stmt, agent, idx):
4848
return
4949
# Initialize annotations if needed so Adeft predicted
5050
# probabilities can be added to Agent annotations
51-
ev = stmt.evidence[0]
52-
annots = ev.annotations
51+
evs = stmt.evidence
52+
annots = evs[0].annotations
5353
agent_txt = agent.db_refs['TEXT']
5454
if 'agents' in annots:
5555
if 'adeft' not in annots['agents']:
@@ -79,7 +79,7 @@ def run_adeft_disambiguation(stmt, agent, idx):
7979
GroundingMapper.standardize_agent_name(agent,
8080
standardize_refs=True)
8181
annots['agents']['adeft'][idx] = disamb_scores
82-
stmt.evidence[0] = ev
82+
stmt.evidence = evs
8383

8484

8585
def _get_text_for_grounding(stmt, agent_text):

0 commit comments

Comments
 (0)