mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix whitespace
This commit is contained in:
parent
5109bba910
commit
459a1e8470
|
@ -741,7 +741,7 @@ cdef class Doc:
|
||||||
token.spacy = self.c[end-1].spacy
|
token.spacy = self.c[end-1].spacy
|
||||||
for attr_name, attr_value in attributes.items():
|
for attr_name, attr_value in attributes.items():
|
||||||
if attr_name == TAG:
|
if attr_name == TAG:
|
||||||
self.vocab.morphology.assign_tag(token, attr_value)
|
self.vocab.morphology.assign_tag(token, attr_value)
|
||||||
else:
|
else:
|
||||||
Token.set_struct_attr(token, attr_name, attr_value)
|
Token.set_struct_attr(token, attr_name, attr_value)
|
||||||
# Begin by setting all the head indices to absolute token positions
|
# Begin by setting all the head indices to absolute token positions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user