* Remove senses attr

This commit is contained in:
Matthew Honnibal 2015-07-08 19:26:24 +02:00
parent 1d3a592edf
commit b64c843861
2 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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