spaCy/spacy
Adriane Boyd 0fe43f40f1
Support registered vectors (#12492)
* Support registered vectors

* Format

* Auto-fill [nlp] on load from config and from bytes/disk

* Only auto-fill [nlp]

* Undo all changes to Language.from_disk

* Expand BaseVectors

These methods are needed in various places for training and vector
similarity.

* isort

* More linting

* Only fill [nlp.vectors]

* Update spacy/vocab.pyx

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Revert changes to test related to auto-filling [nlp]

* Add vectors registry

* Rephrase error about vocab methods for vectors

* Switch to dummy implementation for BaseVectors.to_ops

* Add initial draft of docs

* Remove example from BaseVectors docs

* Apply suggestions from code review

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Update website/docs/api/basevectors.mdx

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Fix type and lint bpemb example

* Update website/docs/api/basevectors.mdx

---------

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2023-08-01 15:46:08 +02:00
..
cli Replace projects functionality with weasel (#12769) 2023-07-07 09:10:27 +02:00
displacy 🐛 Escape annotated HTML tags in span renderer (#12817) 2023-07-13 17:33:05 +02:00
kb ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
lang Add Left and Right Pointing Angle Brackets as punctuation to ancient Greek (#12829) 2023-07-20 11:16:01 +02:00
matcher ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
ml Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
pipeline ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
tests Update numpy build constraints for numpy 1.25 (#12839) 2023-07-24 10:32:56 +02:00
tokens ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
training ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
__init__.pxd
__init__.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
__main__.py
about.py Replace projects functionality with weasel (#12769) 2023-07-07 09:10:27 +02:00
attrs.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
attrs.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
compat.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
default_config.cfg Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
default_config_pretraining.cfg Add new parameter for saving every n epoch in pretraining (#8912) 2021-08-12 11:14:48 +02:00
errors.py Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
glossary.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
language.py Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
lexeme.pxd Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
lexeme.pyi Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
lexeme.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
lookups.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
morphology.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
morphology.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
parts_of_speech.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
parts_of_speech.pyx
pipe_analysis.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
py.typed
schemas.py Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
scorer.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
strings.pxd Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
strings.pyi Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
strings.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
structs.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
symbols.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
symbols.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
tokenizer.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
tokenizer.pyx ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
ty.py Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
typedefs.pxd Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
typedefs.pyx
util.py Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
vectors.pyx Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00
vocab.pxd ci: add cython linter (#12694) 2023-07-19 12:03:31 +02:00
vocab.pyi Configure isort to use the Black profile, recursively isort the `spacy` module (#12721) 2023-06-14 17:48:41 +02:00
vocab.pyx Support registered vectors (#12492) 2023-08-01 15:46:08 +02:00