mirror of https://github.com/explosion/spaCy.git
Fix int type error for Python 2
This commit is contained in:
parent
f92ab03dc8
commit
842e21de9f
|
@ -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, <void*>ent_id)
|
||||
|
||||
def __call__(self, Doc doc):
|
||||
matches = []
|
||||
|
|
Loading…
Reference in New Issue