mirror of https://github.com/explosion/spaCy.git
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"]:
|
||||
token_data["pos"] = token.pos_
|
||||
if include_annotation["MORPH"]:
|
||||
token_data["morph"] = token.morph
|
||||
token_data["morph"] = token.morph.to_json()
|
||||
if include_annotation["LEMMA"]:
|
||||
token_data["lemma"] = token.lemma_
|
||||
if include_annotation["DEP"]:
|
||||
|
|
Loading…
Reference in New Issue