mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
24 lines
283 B
Cython
24 lines
283 B
Cython
from thinc.typedefs cimport class_t
|
|
|
|
|
|
cdef struct Entity:
|
|
int start
|
|
int end
|
|
int label
|
|
|
|
|
|
cdef struct State:
|
|
Entity curr
|
|
Entity* ents
|
|
int* tags
|
|
int i
|
|
int j
|
|
int length
|
|
|
|
|
|
cdef struct Move:
|
|
class_t clas
|
|
int action
|
|
int label
|
|
bint accept
|