You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
754 B

4 years ago
  1. from cymem.cymem cimport Pool
  2. from .structs cimport TokenC
  3. from .typedefs cimport attr_t
  4. from .syntax.transition_system cimport Transition
  5. cdef struct GoldParseC:
  6. int* tags
  7. int* heads
  8. int* has_dep
  9. int* sent_start
  10. attr_t* labels
  11. int** brackets
  12. Transition* ner
  13. cdef class GoldParse:
  14. cdef Pool mem
  15. cdef GoldParseC c
  16. cdef int length
  17. cdef public int loss
  18. cdef public list words
  19. cdef public list tags
  20. cdef public list heads
  21. cdef public list labels
  22. cdef public dict orths
  23. cdef public list ner
  24. cdef public list ents
  25. cdef public dict brackets
  26. cdef public object cats
  27. cdef readonly list cand_to_gold
  28. cdef readonly list gold_to_cand
  29. cdef readonly list orig_annot