From 33996e770bde8fe169f08db7dcb5740acea6b2bb Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 16:50:42 +0100 Subject: [PATCH] Update header for morphology class --- spacy/morphology.pxd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/morphology.pxd b/spacy/morphology.pxd index aa45c47f0..5dc1ce529 100644 --- a/spacy/morphology.pxd +++ b/spacy/morphology.pxd @@ -4,11 +4,12 @@ from libc.stdint cimport uint64_t from .structs cimport TokenC 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 . cimport symbols + cdef struct RichTagC: uint64_t morph 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_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: