mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
* Remove senses attr
This commit is contained in:
parent
1d3a592edf
commit
b64c843861
|
@ -17,7 +17,6 @@ cdef class Lexeme:
|
|||
cdef readonly ndarray repvec
|
||||
|
||||
cdef readonly flags_t flags
|
||||
cdef readonly flags_t senses
|
||||
cdef readonly attr_t id
|
||||
cdef readonly attr_t length
|
||||
|
||||
|
@ -49,7 +48,6 @@ cdef class Lexeme:
|
|||
py.repvec[i] = ptr.repvec[i]
|
||||
py.l2_norm = ptr.l2_norm
|
||||
py.flags = ptr.flags
|
||||
py.senses = ptr.senses
|
||||
py.id = ptr.id
|
||||
py.length = ptr.length
|
||||
|
||||
|
|
|
@ -28,9 +28,6 @@ cdef int set_lex_struct_props(LexemeC* lex, dict props, StringStore string_store
|
|||
lex.sentiment = props['sentiment']
|
||||
|
||||
lex.flags = props['flags']
|
||||
cdef flags_t sense_id
|
||||
for sense_id in props.get('senses', []):
|
||||
lex.senses |= 1 << sense_id
|
||||
lex.repvec = empty_vec
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user