mirror of https://github.com/explosion/spaCy.git
* Update ner.pyx to expect brackets from gold_tuples
This commit is contained in:
parent
0ad72a77ce
commit
aff9359a8d
|
@ -73,7 +73,8 @@ cdef class BiluoPushDown(TransitionSystem):
|
|||
move_labels = {MISSING: {'': True}, BEGIN: {}, IN: {}, LAST: {}, UNIT: {},
|
||||
OUT: {'': True}}
|
||||
moves = ('M', 'B', 'I', 'L', 'U')
|
||||
for (raw_text, toks, (ids, words, tags, heads, labels, biluo)) in gold_tuples:
|
||||
for (raw_text, toks, tuples, ctnt) in gold_tuples:
|
||||
ids, words, tags, heads, labels, biluo = tuples
|
||||
for i, ner_tag in enumerate(biluo):
|
||||
if ner_tag != 'O' and ner_tag != '-':
|
||||
if ner_tag.count('-') != 1:
|
||||
|
|
Loading…
Reference in New Issue