From 842e21de9f54c3e37e43f698c75a246d69d4551c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 20 Sep 2017 23:55:30 +0200 Subject: [PATCH] Fix int type error for Python 2 --- spacy/matcher.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index ef4044d21..5106161a0 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -466,7 +466,7 @@ cdef class PhraseMatcher: self._phrase_key[i] = lexeme.orth phrase_hash = hash64(self._phrase_key, self.max_length * sizeof(attr_t), 0) - self.phrase_ids[phrase_hash] = ent_id + self.phrase_ids.set(phrase_hash, ent_id) def __call__(self, Doc doc): matches = []