mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* Store Morphology class in Vocab
This commit is contained in:
parent
d30029979e
commit
2d521768a3
|
@ -7,6 +7,7 @@ from murmurhash.mrmr cimport hash64
|
||||||
from .structs cimport LexemeC, TokenC
|
from .structs cimport LexemeC, TokenC
|
||||||
from .typedefs cimport utf8_t, attr_t, hash_t
|
from .typedefs cimport utf8_t, attr_t, hash_t
|
||||||
from .strings cimport StringStore
|
from .strings cimport StringStore
|
||||||
|
from .morphology cimport Morphology
|
||||||
|
|
||||||
|
|
||||||
cdef LexemeC EMPTY_LEXEME
|
cdef LexemeC EMPTY_LEXEME
|
||||||
|
@ -27,6 +28,7 @@ cdef class Vocab:
|
||||||
cpdef public lexeme_props_getter
|
cpdef public lexeme_props_getter
|
||||||
cdef Pool mem
|
cdef Pool mem
|
||||||
cpdef readonly StringStore strings
|
cpdef readonly StringStore strings
|
||||||
|
cpdef readonly Morphology morphology
|
||||||
cdef readonly int length
|
cdef readonly int length
|
||||||
cdef public object _serializer
|
cdef public object _serializer
|
||||||
cdef public object data_dir
|
cdef public object data_dir
|
||||||
|
|
Loading…
Reference in New Issue
Block a user