mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
Add sentiment property on lexeme object
This commit is contained in:
parent
7a26b8a100
commit
ed5e178817
|
@ -124,7 +124,13 @@ cdef class Lexeme:
|
||||||
|
|
||||||
property repvec:
|
property repvec:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return self.vector
|
raise AttributeError("lex.repvec has been renamed to lex.vector")
|
||||||
|
|
||||||
|
property sentiment:
|
||||||
|
def __get__(self):
|
||||||
|
return self.c.sentiment
|
||||||
|
def __set__(self, float sentiment):
|
||||||
|
self.c.sentiment = sentiment
|
||||||
|
|
||||||
property orth_:
|
property orth_:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user