diff --git a/spacy/tokenizer.pyx b/spacy/tokenizer.pyx index 7f1a37baf..e3a587dbd 100644 --- a/spacy/tokenizer.pyx +++ b/spacy/tokenizer.pyx @@ -690,7 +690,9 @@ def _get_regex_pattern(regex): cdef extern from "" namespace "std" nogil: - void stdsort "sort"(...) + void stdsort "sort"(vector[MatchStruct].iterator, + vector[MatchStruct].iterator, + bint (*)(MatchStruct, MatchStruct)) cdef bint len_start_cmp(MatchStruct a, MatchStruct b) nogil: