From c8a28413083d2acf13c15c1b22ff3ab3c94918d7 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 26 Sep 2018 21:04:29 +0200 Subject: [PATCH] Add property to get morph key on token --- spacy/tokens/token.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 6da93a726..3af5071d2 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -169,6 +169,10 @@ cdef class Token: return (numpy.dot(self.vector, other.vector) / (self.vector_norm * other.vector_norm)) + property morph_key: + def __get__(self): + return self.c.morph + property lex_id: """RETURNS (int): Sequential ID of the token's lexical type.""" def __get__(self):