mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16: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) /
|
||||
(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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user