Fix morph representation in Doc.to_json

This commit is contained in:
Ines Montani 2020-10-13 11:39:03 +02:00
parent 4d99d2b94a
commit 86d648740f
1 changed files with 1 additions and 1 deletions

View File

@ -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"]: