mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Add property to get morph key on token
This commit is contained in:
parent
823cc4127a
commit
c8a2841308
|
@ -169,6 +169,10 @@ 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 lex_id:
|
property lex_id:
|
||||||
"""RETURNS (int): Sequential ID of the token's lexical type."""
|
"""RETURNS (int): Sequential ID of the token's lexical type."""
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user