mirror of https://github.com/explosion/spaCy.git
* Fix Token after lexeme changes
This commit is contained in:
parent
e6b87766fe
commit
ac88893232
|
@ -101,11 +101,10 @@ cdef class Tokens:
|
||||||
@cython.freelist(64)
|
@cython.freelist(64)
|
||||||
cdef class Token:
|
cdef class Token:
|
||||||
def __init__(self, StringStore string_store, int i, int idx, int pos, dict lex):
|
def __init__(self, StringStore string_store, int i, int idx, int pos, dict lex):
|
||||||
assert i < 1000000
|
|
||||||
self._string_store = string_store
|
self._string_store = string_store
|
||||||
self.id = i
|
|
||||||
self.idx = idx
|
self.idx = idx
|
||||||
self.pos = pos
|
self.pos = pos
|
||||||
|
self.i = i
|
||||||
|
|
||||||
self.cluster = lex['cluster']
|
self.cluster = lex['cluster']
|
||||||
self.length = lex['length']
|
self.length = lex['length']
|
||||||
|
|
Loading…
Reference in New Issue