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