mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +03:00
Fix feature error in NER
This commit is contained in:
parent
e37a50a436
commit
8665a77f48
|
@ -101,9 +101,10 @@ cdef cppclass StateC:
|
||||||
elif n == 6:
|
elif n == 6:
|
||||||
if this.B(0) >= 0:
|
if this.B(0) >= 0:
|
||||||
ids[0] = this.B(0)
|
ids[0] = this.B(0)
|
||||||
|
ids[1] = this.B(0)-1
|
||||||
else:
|
else:
|
||||||
ids[0] = -1
|
ids[0] = -1
|
||||||
ids[1] = this.B(0)
|
ids[1] = -1
|
||||||
ids[2] = this.B(1)
|
ids[2] = this.B(1)
|
||||||
ids[3] = this.E(0)
|
ids[3] = this.E(0)
|
||||||
if ids[3] >= 1:
|
if ids[3] >= 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user