Repository navigation
Commit 2b5f28d
committed
Fix spacy.CharEmbed.v1 registration and require Python 3.10
- spacy.CharEmbed.v1 has been registered to the CharacterEmbed
architecture from ml.models.tok2vec since registrations moved to
registrations.py, instead of the CharacterEmbed(nM, nC) layer in
ml._character_embed. This broke spacy-legacy's CharacterEmbed.v1,
which builds its model from this layer. Add a regression test; the
existing registry tests only check that names are present.
- Require Python >=3.10. spaCy has needed thinc>=8.3.12, which requires
Python 3.10, since v3.8.13, and no cp39 wheels are built, so installs
on 3.9 failed trying to build the sdist.1 parent f0b029c commit 2b5f28d
3 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments