From 39341598bb9d267c83c4940e781bd5ac4ee4661c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 25 Nov 2016 09:02:22 -0600 Subject: [PATCH] Fix NER label calculation --- spacy/syntax/ner.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index 53eb1496d..a5db70b68 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -65,7 +65,7 @@ cdef class BiluoPushDown(TransitionSystem): for action in (BEGIN, IN, LAST, UNIT): actions[action][entity_type] = True moves = ('M', 'B', 'I', 'L', 'U') - for raw_text, sents in kwargs.get('gold_tuples', []): + for raw_text, sents in kwargs.get('gold_parses', []): for (ids, words, tags, heads, labels, biluo), _ in sents: for i, ner_tag in enumerate(biluo): if ner_tag != 'O' and ner_tag != '-':