mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* Rename Doc.data to Doc.c
This commit is contained in:
parent
68f479e821
commit
1ce5d5602d
|
@ -155,10 +155,10 @@ cdef class Packer:
|
|||
self.char_codec.encode(bytearray(utf8_str), bits)
|
||||
cdef int i, j
|
||||
for i in range(doc.length):
|
||||
for j in range(doc.data[i].lex.length-1):
|
||||
for j in range(doc.c[i].lex.length-1):
|
||||
bits.append(False)
|
||||
bits.append(True)
|
||||
if doc.data[i].spacy:
|
||||
if doc.c[i].spacy:
|
||||
bits.append(False)
|
||||
return bits
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user