mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
23 lines
393 B
Cython
23 lines
393 B
Cython
from cymem.cymem cimport Pool
|
|
|
|
from ..structs cimport TokenC
|
|
|
|
cdef class GoldParse:
|
|
cdef Pool mem
|
|
|
|
cdef int* c_heads
|
|
cdef int* c_labels
|
|
|
|
cdef int length
|
|
cdef int loss
|
|
|
|
cdef unicode raw_text
|
|
cdef list words
|
|
cdef list ids
|
|
cdef list tags
|
|
cdef list heads
|
|
cdef list labels
|
|
|
|
|
|
cdef int heads_correct(self, TokenC* tokens, bint score_punct=?) except -1
|