mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
d093d6343b
* rename Pipe to TrainablePipe * split functionality between Pipe and TrainablePipe * remove unnecessary methods from certain components * cleanup * hasattr(component, "pipe") should be sufficient again * remove serialization and vocab/cfg from Pipe * unify _ensure_examples and validate_examples * small fixes * hasattr checks for self.cfg and self.vocab * make is_resizable and is_trainable properties * serialize strings.json instead of vocab * fix KB IO + tests * fix typos * more typos * _added_strings as a set * few more tests specifically for _added_strings field * bump to 3.0.0a36
9 lines
203 B
Cython
9 lines
203 B
Cython
from .pipe cimport Pipe
|
|
from ..vocab cimport Vocab
|
|
|
|
cdef class TrainablePipe(Pipe):
|
|
cdef public Vocab vocab
|
|
cdef public object model
|
|
cdef public object cfg
|
|
cdef public set _added_strings
|