mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* Refactor, move Lexeme struct to structs.pxd
This commit is contained in:
parent
7d48bba6c4
commit
f6556d8e5d
|
@ -1,6 +1,6 @@
|
|||
from .typedefs cimport hash_t, flags_t, id_t, len_t, tag_t, attr_t
|
||||
|
||||
from .utf8string cimport StringStore
|
||||
from .structs cimport Lexeme
|
||||
from .strings cimport StringStore
|
||||
|
||||
|
||||
# Reserve 64 values for flag features
|
||||
|
@ -83,24 +83,6 @@ cpdef enum attr_id_t:
|
|||
LEMMA
|
||||
|
||||
|
||||
cdef struct Lexeme:
|
||||
flags_t flags
|
||||
|
||||
attr_t id
|
||||
attr_t sic
|
||||
attr_t dense
|
||||
attr_t shape
|
||||
attr_t prefix
|
||||
attr_t suffix
|
||||
|
||||
attr_t length
|
||||
attr_t cluster
|
||||
attr_t pos_type
|
||||
|
||||
float prob
|
||||
float sentiment
|
||||
|
||||
|
||||
cdef Lexeme EMPTY_LEXEME
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user