From b2a162361fd9b179840d815e28dd78e80e5157dc Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 27 Sep 2019 11:20:44 +0200 Subject: [PATCH] Rewrap stdsort with specific types --- spacy/tokenizer.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: