spaCy/spacy/ml
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
..
models
__init__.py
_character_embed.py
_precomputable_affine.py
callbacks.py
extract_ngrams.py
extract_spans.py
featureextractor.py
parser_model.pxd
parser_model.pyx
staticvectors.py
tb_framework.py