From c1888b05d2c57430c5cce9a197f408cc3c250b33 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 7 Mar 2019 18:33:06 +0100 Subject: [PATCH] Export helper functions for morphology --- spacy/morphology.pxd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spacy/morphology.pxd b/spacy/morphology.pxd index a057e8ed8..30c29c1c7 100644 --- a/spacy/morphology.pxd +++ b/spacy/morphology.pxd @@ -31,3 +31,8 @@ cdef class Morphology: cdef int assign_tag_id(self, TokenC* token, int tag_id) except -1 cdef int _assign_tag_from_exceptions(self, TokenC* token, int tag_id) except -1 + + +cdef int check_feature(const MorphAnalysisC* tag, attr_t feature) nogil + +cdef tag_to_json(MorphAnalysisC tag)