mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 09:23:12 +03:00
Make it build with Cython 3
This commit is contained in:
parent
9f92a51f84
commit
0d9b73dfc4
|
@ -36,7 +36,7 @@ cdef class Morphology:
|
||||||
|
|
||||||
cdef shared_ptr[MorphAnalysisC] _lookup_tag(self, hash_t tag_hash):
|
cdef shared_ptr[MorphAnalysisC] _lookup_tag(self, hash_t tag_hash):
|
||||||
match = self.tags.find(tag_hash)
|
match = self.tags.find(tag_hash)
|
||||||
if match != self.tags.const_end():
|
if match != self.tags.end():
|
||||||
return deref(match).second
|
return deref(match).second
|
||||||
else:
|
else:
|
||||||
return shared_ptr[MorphAnalysisC]()
|
return shared_ptr[MorphAnalysisC]()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user