mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
21 lines
516 B
Cython
21 lines
516 B
Cython
from libc.stdint cimport uint8_t
|
|
|
|
from cymem.cymem cimport Pool
|
|
|
|
from thinc.learner cimport LinearModel
|
|
from thinc.features cimport Extractor
|
|
from thinc.typedefs cimport atom_t, feat_t, weight_t, class_t
|
|
|
|
from preshed.maps cimport PreshMapArray
|
|
|
|
from .typedefs cimport hash_t, id_t
|
|
from .tokens cimport Tokens
|
|
|
|
|
|
cdef class Tagger:
|
|
cdef class_t predict(self, const atom_t* context, object golds=*) except *
|
|
|
|
cpdef readonly Pool mem
|
|
cpdef readonly Extractor extractor
|
|
cpdef readonly LinearModel model
|