mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Remove morph_key from token api
This commit is contained in:
parent
c1888b05d2
commit
1a10bf29bc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user