mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
Fix morph representation in Doc.to_json
This commit is contained in:
parent
4d99d2b94a
commit
86d648740f
|
@ -1419,7 +1419,7 @@ cdef class Doc:
|
||||||
if include_annotation["POS"]:
|
if include_annotation["POS"]:
|
||||||
token_data["pos"] = token.pos_
|
token_data["pos"] = token.pos_
|
||||||
if include_annotation["MORPH"]:
|
if include_annotation["MORPH"]:
|
||||||
token_data["morph"] = token.morph
|
token_data["morph"] = token.morph.to_json()
|
||||||
if include_annotation["LEMMA"]:
|
if include_annotation["LEMMA"]:
|
||||||
token_data["lemma"] = token.lemma_
|
token_data["lemma"] = token.lemma_
|
||||||
if include_annotation["DEP"]:
|
if include_annotation["DEP"]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user