From dc069e90b39ef3ca0604e950780a84482386973f Mon Sep 17 00:00:00 2001 From: svlandeg Date: Sat, 20 Jun 2020 21:13:11 +0200 Subject: [PATCH] fix token.morph_ for v.3 (cf PR #5517) --- spacy/tokens/morphanalysis.pyx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spacy/tokens/morphanalysis.pyx b/spacy/tokens/morphanalysis.pyx index e0db52d5b..77e499968 100644 --- a/spacy/tokens/morphanalysis.pyx +++ b/spacy/tokens/morphanalysis.pyx @@ -73,3 +73,10 @@ cdef class MorphAnalysis: """Produce a dict representation. """ return self.vocab.morphology.feats_to_dict(self.to_json()) + + def __str__(self): + return self.to_json() + + def __repr__(self): + return self.to_json() +