Update header for morphology class

This commit is contained in:
Matthew Honnibal 2016-12-18 16:50:42 +01:00
parent d58187ffa7
commit 33996e770b

View File

@ -4,11 +4,12 @@ from libc.stdint cimport uint64_t
from .structs cimport TokenC from .structs cimport TokenC
from .strings cimport StringStore from .strings cimport StringStore
from .typedefs cimport attr_t from .typedefs cimport attr_t, flags_t
from .parts_of_speech cimport univ_pos_t from .parts_of_speech cimport univ_pos_t
from . cimport symbols from . cimport symbols
cdef struct RichTagC: cdef struct RichTagC:
uint64_t morph uint64_t morph
int id int id
@ -37,7 +38,7 @@ cdef class Morphology:
cdef int assign_tag_id(self, TokenC* token, int tag_id) except -1 cdef int assign_tag_id(self, TokenC* token, int tag_id) except -1
cdef int assign_feature(self, uint64_t* morph, feature, value) except -1 cdef int assign_feature(self, uint64_t* morph, univ_morph_t feat_id, bint value) except -1
cpdef enum univ_morph_t: cpdef enum univ_morph_t: