spaCy/spacy/gold.pxd

41 lines
744 B
Cython
Raw Normal View History

from cymem.cymem cimport Pool
2015-02-21 19:06:58 +03:00
from .structs cimport TokenC
from .typedefs cimport flags_t
from .syntax.transition_system cimport Transition
2015-03-09 08:46:22 +03:00
cimport numpy
2015-02-21 19:06:58 +03:00
cdef struct GoldParseC:
int* tags
int* heads
int* labels
flags_t* ssenses
int** brackets
Transition* ner
2015-02-21 19:06:58 +03:00
cdef class GoldParse:
cdef Pool mem
cdef GoldParseC c
cdef int length
2015-03-09 08:46:22 +03:00
cdef readonly int loss
cdef readonly list tags
cdef readonly list heads
cdef readonly list labels
cdef readonly dict orths
cdef readonly list ssenses
cdef readonly list ner
cdef readonly list ents
2015-05-11 17:12:03 +03:00
cdef readonly dict brackets
cdef readonly list cand_to_gold
cdef readonly list gold_to_cand
cdef readonly list orig_annot