spaCy/spacy/tests/serialize
Sofie Van Landeghem d093d6343b
TrainablePipe (#6213)
* 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
2020-10-08 21:33:49 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_serialize_config.py Fix test 2020-10-05 21:13:53 +02:00
test_serialize_doc.py Tidy up and auto-format 2020-10-03 17:20:18 +02:00
test_serialize_extension_attrs.py Merge branch 'master' into develop 2020-02-18 14:47:23 +01:00
test_serialize_kb.py set_kb method for entity_linker 2020-10-08 10:34:01 +02:00
test_serialize_language.py Remove dead and/or deprecated code (#5710) 2020-07-06 13:06:25 +02:00
test_serialize_pipeline.py TrainablePipe (#6213) 2020-10-08 21:33:49 +02:00
test_serialize_tokenizer.py Refactor pipeline components, config and language data (#5759) 2020-07-22 13:42:59 +02:00
test_serialize_vocab_strings.py Add Lemmatizer and simplify related components (#5848) 2020-08-07 15:27:13 +02:00