Instructions to use spacy/en_core_web_trf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use spacy/en_core_web_trf with spaCy:
!pip install https://huggingface.co/spacy/en_core_web_trf/resolve/main/en_core_web_trf-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("en_core_web_trf") # Importing as module. import en_core_web_trf nlp = en_core_web_trf.load() - Notebooks
- Google Colab
- Kaggle
Create requirements.txt
Browse filesCurrently the inference throws the `issubclass() arg 1 must be a class`error which is likely related to incorrect pydantic/spacy version. More context: https://github.com/explosion/spaCy/issues/12659
Trying to ping the versions.
- requirements.txt +2 -0
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
|
| 2 |
+
spacy>=3.7.2,<3.8.0
|