Commit Graph

9461 Commits

Author SHA1 Message Date
Matthew Honnibal
fe048275fb Update factory import tests 2025-05-21 15:39:19 +02:00
Matthew Honnibal
43a9d37864 Point to spacy.pipeline.factories for import backwards compat hooks 2025-05-21 15:36:37 +02:00
Matthew Honnibal
bd2d707773 Move factories to their own file 2025-05-21 15:34:01 +02:00
Matthew Honnibal
7dd064a089 Move factories to their own file 2025-05-21 15:33:46 +02:00
Matthew Honnibal
0b82521d49 Add test for factory imports 2025-05-21 15:26:22 +02:00
Matthew Honnibal
1e07a58abe Fix hook 2025-05-21 15:26:02 +02:00
Matthew Honnibal
2f051c6793 Fix future_entity_ruler import hook 2025-05-21 15:24:57 +02:00
Matthew Honnibal
4318f8fc85 Add __getattr__ import hooks for factories for backwards compatibility 2025-05-21 15:11:03 +02:00
Matthew Honnibal
d8388aa591 Make factories top-level functions in registrations.py 2025-05-21 14:03:11 +02:00
Matthew Honnibal
5c331884c3 Fix test 2025-05-20 18:47:23 +02:00
Matthew Honnibal
b207df4ebb Remove test checking for compatibility warning
We had a test that relied on an __init_subclass__ on the Pipe,
as we did this to provide a migration warning for v2 -> v3.
The __init_subclass__ no longer works on Cython classes and the
test is old, so just removed it.
2025-05-20 18:46:03 +02:00
Matthew Honnibal
f6b1546a74 Fix syntax 2025-05-20 18:35:13 +02:00
Matthew Honnibal
216ef7ee7a Move imports 2025-05-20 18:34:01 +02:00
Matthew Honnibal
fd91e8a0e4 Remove component factory functions from component files 2025-05-20 18:29:31 +02:00
Matthew Honnibal
6f1a65a8bd Move component registrations under registrations.py
The functions can't be in Cython anymore, as we can't read
the types off the signatures in Cython 3. To avoid having some
in the file and some not, I've moved the Python ones as well.

We'll need to do a re-import of these functions into the files that
had them before to maintain backwards compatibility. This might
require some import trickery to avoid circular imports.
2025-05-20 18:27:12 +02:00
Matthew Honnibal
c3f9fab5e8 WIP 2025-05-19 17:41:34 +02:00
Matthew Honnibal
cda2bd01d4 Fix enum population 2025-05-19 17:24:56 +02:00
Matthew Honnibal
ceda7b0732 Fix global population of parts_of_speech enum 2025-05-19 17:22:59 +02:00
Matthew Honnibal
906bf04239 Merge branch 'refactor/move-registrations' into kamikaze-cython3-upd 2025-05-19 16:27:23 +02:00
Matthew Honnibal
d20445ef6f Add test for factory registrations 2025-05-19 16:26:09 +02:00
Matthew Honnibal
c62b9dac0b Register factories in spacy.registrations, to avoid import-time side-effects 2025-05-19 16:25:33 +02:00
Matthew Honnibal
15bd029be5 Centralise registrations 2025-05-19 13:07:21 +02:00
Matthew Honnibal
43f87b991b Centralise registry calls 2025-05-19 12:33:58 +02:00
Matthew Honnibal
9d7b22c52e Start centralising registry calls 2025-05-19 12:33:24 +02:00
Matthew Honnibal
911539e9a4 Update version 2025-05-18 12:18:38 +02:00
Matthew Honnibal
b4b6b125f6 Revert "xfail pydantic config tests for now"
This reverts commit 2dcedb8aa5.
2025-05-16 12:55:30 +02:00
Matthew Honnibal
9b92eb42fe Revert "Disable validation"
This reverts commit fbf845dfc9.
2025-05-16 12:55:08 +02:00
Oleg Korsak
5f3365369c made code building again. 2025-05-14 19:43:15 +03:00
Matthew Honnibal
fbf845dfc9 Disable validation 2025-05-14 19:17:45 +03:00
Matthew Honnibal
2dcedb8aa5 xfail pydantic config tests for now 2025-05-14 19:17:45 +03:00
Matthew Honnibal
dfc01fdc62 Add noexcept for Cython 3 2025-05-14 19:17:45 +03:00
Matthew Honnibal
05edfeac52 Add inline markers in state 2025-05-14 19:17:45 +03:00
Matthew Honnibal
17cc5440ea Remove __init_subclass__ used for deprecation warning (incompatible with cython3) 2025-05-14 19:17:45 +03:00
Matthew Honnibal
d0c705cbc9 Increment version 2025-04-01 09:40:59 +02:00
Matthew Honnibal
ba7468e32e
Update requirements, fixing windows crashes (#13727)
* Re-enable pretraining test

* Require thinc 8.3.4

* Reformat

* Re-enable test
2025-01-13 16:39:46 +01:00
Matthew Honnibal
311f7cc9fb Set version to v3.8.4 2024-12-11 14:14:08 +01:00
Matthew Honnibal
a6317b3836
Fix allocation of non-transient strings in StringStore (#13713)
* Fix bug in memory-zone code when adding non-transient strings. The error could result in segmentation faults or other memory errors during memory zones if new labels were added to the model.
* Fix handling of new morphological labels within memory zones. Addresses second issue reported in Memory leak of MorphAnalysis object. #13684
2024-12-11 13:06:53 +01:00
Andrei (Andrey) Khropov
8d2902b0e7
Fix misspelling (#13631) [ci skip] 2024-10-11 11:23:12 +02:00
Matthew Honnibal
bda4bb0184
Try disabling pretraining tests to probe windows ci failure (#13646) 2024-10-02 01:01:40 +02:00
Matthew Honnibal
0cdcfe56cb Set version to v3.8.2 2024-10-01 16:47:24 +02:00
Matthew Honnibal
9c5b61bdff isort 2024-10-01 12:38:51 +02:00
Matthew Honnibal
725ccbac39 Format 2024-10-01 12:38:02 +02:00
Matthew Honnibal
a8837beab7 Set version to v3.8.1 2024-10-01 12:37:11 +02:00
Matthew Honnibal
114b4894fb Fix --require-parent default 2024-09-29 15:50:31 +02:00
Matthew Honnibal
dec13b4258 Fix inverted cli arg 2024-09-29 15:50:05 +02:00
Matthew Honnibal
c03f060527 Allow positive option --require-parent 2024-09-29 14:30:14 +02:00
Matthew Honnibal
6255cb985f Include version constraint in parent package requirement 2024-09-29 14:22:21 +02:00
Matthew Honnibal
3b165a8716 Simplify setting to require parent package 2024-09-29 14:19:10 +02:00
Matthew Honnibal
969832f5d6 Fix package 2024-09-29 14:00:11 +02:00
Matthew Honnibal
8ce53a6bbe Syntax 2024-09-29 13:51:44 +02:00