2015-02-22 08:32:07 +03:00
|
|
|
from cymem.cymem cimport Pool
|
2015-02-21 19:06:58 +03:00
|
|
|
|
2015-02-22 08:32:07 +03:00
|
|
|
from ..structs cimport TokenC
|
2015-03-09 08:46:22 +03:00
|
|
|
from .transition_system cimport Transition
|
|
|
|
|
2015-03-09 14:06:01 +03:00
|
|
|
cimport numpy
|
2015-02-21 19:06:58 +03:00
|
|
|
|
|
|
|
cdef class GoldParse:
|
2015-02-22 08:32:07 +03:00
|
|
|
cdef Pool mem
|
|
|
|
|
|
|
|
cdef int length
|
2015-03-09 08:46:22 +03:00
|
|
|
cdef readonly int loss
|
2015-03-09 14:06:01 +03:00
|
|
|
cdef readonly list tags
|
|
|
|
cdef readonly list heads
|
|
|
|
cdef readonly list labels
|
2015-03-24 06:27:20 +03:00
|
|
|
cdef readonly dict orths
|
2015-03-09 14:06:01 +03:00
|
|
|
cdef readonly list ner
|
2015-03-10 20:00:23 +03:00
|
|
|
cdef readonly list ents
|
2015-05-11 17:12:03 +03:00
|
|
|
cdef readonly dict brackets
|
2015-02-22 08:32:07 +03:00
|
|
|
|
2015-05-24 18:35:49 +03:00
|
|
|
cdef readonly list cand_to_gold
|
|
|
|
cdef readonly list gold_to_cand
|
|
|
|
cdef readonly list orig_annot
|
|
|
|
|
2015-03-09 14:06:01 +03:00
|
|
|
cdef int* c_tags
|
2015-03-09 08:46:22 +03:00
|
|
|
cdef int* c_heads
|
|
|
|
cdef int* c_labels
|
2015-05-11 17:12:03 +03:00
|
|
|
cdef int** c_brackets
|
2015-03-09 14:06:01 +03:00
|
|
|
cdef Transition* c_ner
|