spaCy/spacy/syntax/conll.pxd

24 lines
496 B
Cython
Raw Normal View History

from cymem.cymem cimport Pool
2015-02-21 19:06:58 +03:00
from ..structs cimport TokenC
2015-03-09 08:46:22 +03:00
from .transition_system cimport Transition
cimport numpy
2015-02-21 19:06:58 +03:00
cdef class GoldParse:
cdef Pool mem
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 list ner
cdef int* c_tags
2015-03-09 08:46:22 +03:00
cdef int* c_heads
cdef int* c_labels
cdef Transition* c_ner
2015-02-21 19:06:58 +03:00
cdef int heads_correct(self, TokenC* tokens, bint score_punct=?) except -1