Fix int type error for Python 2

This commit is contained in:
Matthew Honnibal 2017-09-20 23:55:30 +02:00
parent f92ab03dc8
commit 842e21de9f
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ cdef class PhraseMatcher:
self._phrase_key[i] = lexeme.orth self._phrase_key[i] = lexeme.orth
phrase_hash = hash64(self._phrase_key, phrase_hash = hash64(self._phrase_key,
self.max_length * sizeof(attr_t), 0) self.max_length * sizeof(attr_t), 0)
self.phrase_ids[phrase_hash] = ent_id self.phrase_ids.set(phrase_hash, <void*>ent_id)
def __call__(self, Doc doc): def __call__(self, Doc doc):
matches = [] matches = []