mirror of https://github.com/explosion/spaCy.git
* Update Constituent definition
This commit is contained in:
parent
9dfc9c039c
commit
8ee7c541f1
|
@ -49,16 +49,18 @@ cdef struct Entity:
|
||||||
|
|
||||||
|
|
||||||
cdef struct Constituent:
|
cdef struct Constituent:
|
||||||
int head
|
const TokenC* head
|
||||||
int start
|
const Constituent* parent
|
||||||
int end
|
const Constituent* first
|
||||||
|
const Constituent* last
|
||||||
int label
|
int label
|
||||||
bint on_stack
|
int length
|
||||||
|
|
||||||
|
|
||||||
cdef struct TokenC:
|
cdef struct TokenC:
|
||||||
const LexemeC* lex
|
const LexemeC* lex
|
||||||
Morphology morph
|
Morphology morph
|
||||||
|
const Constituent* ctnt
|
||||||
univ_pos_t pos
|
univ_pos_t pos
|
||||||
int tag
|
int tag
|
||||||
int idx
|
int idx
|
||||||
|
@ -73,9 +75,6 @@ cdef struct TokenC:
|
||||||
uint32_t l_edge
|
uint32_t l_edge
|
||||||
uint32_t r_edge
|
uint32_t r_edge
|
||||||
|
|
||||||
int attach_order
|
|
||||||
int ctnt_label
|
|
||||||
|
|
||||||
int ent_iob
|
int ent_iob
|
||||||
int ent_type
|
int ent_type
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue