mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
fix token.morph_ for v.3 (cf PR #5517)
This commit is contained in:
parent
5424b70e51
commit
dc069e90b3
|
@ -73,3 +73,10 @@ cdef class MorphAnalysis:
|
||||||
"""Produce a dict representation.
|
"""Produce a dict representation.
|
||||||
"""
|
"""
|
||||||
return self.vocab.morphology.feats_to_dict(self.to_json())
|
return self.vocab.morphology.feats_to_dict(self.to_json())
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.to_json()
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return self.to_json()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user