spaCy/spacy/tests/pipeline
Daniël de Kok 2dbb332cea
TextCatParametricAttention.v1: set key transform dimensions (#13249)
* TextCatParametricAttention.v1: set key transform dimensions

This is necessary for tok2vec implementations that initialize
lazily (e.g. curated transformers).

* Add lazily-initialized tok2vec to simulate transformers

Add a lazily-initialized tok2vec to the tests and test the current
textcat models with it.

Fix some additional issues found using this test.

* isort

* Add `test.` prefix to `LazyInitTok2Vec.v1`
2024-02-02 13:01:59 +01:00
..
__init__.py
test_analysis.py
test_annotates_on_update.py
test_attributeruler.py
test_edit_tree_lemmatizer.py
test_entity_linker.py
test_entity_ruler.py
test_functions.py
test_initialize.py
test_lemmatizer.py
test_models.py
test_morphologizer.py
test_pipe_factories.py
test_pipe_methods.py
test_sentencizer.py
test_senter.py
test_span_finder.py
test_span_ruler.py
test_spancat.py
test_tagger.py
test_textcat.py TextCatParametricAttention.v1: set key transform dimensions (#13249) 2024-02-02 13:01:59 +01:00
test_tok2vec.py