mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-13 07:55:49 +03:00
Fix spaces reading
This commit is contained in:
parent
7d866c3056
commit
b3df6228dd
|
@ -91,7 +91,7 @@ def json_to_annotations(doc):
|
|||
sent_start_i = len(words)
|
||||
for i, token in enumerate(sent["tokens"]):
|
||||
words.append(token["orth"])
|
||||
spaces.append(token.get("space", True))
|
||||
spaces.append(token.get("space", None))
|
||||
ids.append(token.get('id', sent_start_i + i))
|
||||
tags.append(token.get("tag", None))
|
||||
pos.append(token.get("pos", None))
|
||||
|
|
Loading…
Reference in New Issue
Block a user