spaCy/spacy/gold.pxd

30 lines
644 B
Cython
Raw Normal View History

from cymem.cymem cimport Pool
2015-02-21 16:06:58 +00:00
from .structs cimport TokenC
from .syntax.transition_system cimport Transition
2015-03-09 05:46:22 +00:00
cimport numpy
2015-02-21 16:06:58 +00:00
cdef class GoldParse:
cdef Pool mem
cdef int length
2015-03-09 05:46:22 +00:00
cdef readonly int loss
cdef readonly list tags
cdef readonly list heads
cdef readonly list labels
cdef readonly dict orths
cdef readonly list ner
cdef readonly list ents
2015-05-11 14:12:03 +00:00
cdef readonly dict brackets
cdef readonly list cand_to_gold
cdef readonly list gold_to_cand
cdef readonly list orig_annot
cdef int* c_tags
2015-03-09 05:46:22 +00:00
cdef int* c_heads
cdef int* c_labels
2015-05-11 14:12:03 +00:00
cdef int** c_brackets
cdef Transition* c_ner