spaCy/spacy/gold.pxd

64 lines
1.3 KiB
Cython
Raw Normal View History

from cymem.cymem cimport Pool
2015-02-21 16:06:58 +00:00
from spacy.tokens import Doc
2017-05-28 12:06:40 +00:00
from .typedefs cimport attr_t
from .syntax.transition_system cimport Transition
2015-03-09 05:46:22 +00:00
cdef struct GoldParseC:
int* tags
int* heads
2017-05-30 18:37:24 +00:00
int* has_dep
int* sent_start
2017-05-28 12:06:40 +00:00
attr_t* labels
int** brackets
Transition* ner
2015-02-21 16:06:58 +00:00
cdef class GoldParse:
cdef Pool mem
cdef GoldParseC c
cdef readonly TokenAnnotation orig
cdef int length
2017-05-22 09:50:29 +00:00
cdef public int loss
cdef public list words
cdef public list tags
2018-09-25 19:34:53 +00:00
cdef public list morphology
2017-05-22 09:50:29 +00:00
cdef public list heads
cdef public list labels
cdef public dict orths
cdef public list ner
cdef public dict brackets
cdef public dict cats
2019-07-17 15:18:26 +00:00
cdef public dict links
cdef readonly list cand_to_gold
cdef readonly list gold_to_cand
cdef class TokenAnnotation:
cdef public list ids
cdef public list words
cdef public list tags
cdef public list heads
cdef public list deps
cdef public list entities
cdef public list morphology
cdef public list brackets
cdef class DocAnnotation:
cdef public object cats
cdef public object links
cdef class Example:
cdef public object doc
cdef public list token_annotations
cdef public DocAnnotation doc_annotation
cdef public object goldparse