Remove morph_key from token api

This commit is contained in:
Matthew Honnibal 2019-03-07 18:33:17 +01:00
parent c1888b05d2
commit 1a10bf29bc

View File

@ -173,10 +173,6 @@ cdef class Token:
return (numpy.dot(self.vector, other.vector) / return (numpy.dot(self.vector, other.vector) /
(self.vector_norm * other.vector_norm)) (self.vector_norm * other.vector_norm))
property morph_key:
def __get__(self):
return self.c.morph
property morph: property morph:
def __get__(self): def __get__(self):
return MorphAnalysis.from_id(self.vocab, self.c.morph) return MorphAnalysis.from_id(self.vocab, self.c.morph)