From 0d9b73dfc472b95e799f79c941012da2bf0560ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis=20Mos=C4=81ns?= Date: Thu, 6 Mar 2025 23:07:21 +0200 Subject: [PATCH] Make it build with Cython 3 --- spacy/morphology.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index d37362bed..f13de4735 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -36,7 +36,7 @@ cdef class Morphology: cdef shared_ptr[MorphAnalysisC] _lookup_tag(self, hash_t tag_hash): match = self.tags.find(tag_hash) - if match != self.tags.const_end(): + if match != self.tags.end(): return deref(match).second else: return shared_ptr[MorphAnalysisC]()