Instructions to use reflex-project/it_trf_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- spaCy
How to use reflex-project/it_trf_base with spaCy:
!pip install https://huggingface.co/reflex-project/it_trf_base/resolve/main/it_trf_base-any-py3-none-any.whl # Using spacy.load(). import spacy nlp = spacy.load("it_trf_base") # Importing as module. import it_trf_base nlp = it_trf_base.load() - Notebooks
- Google Colab
- Kaggle
File size: 316 Bytes
72fe60d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from spacy.util import registry
from commercial_registry_ner.spacy.custom_tokenizer.custom_tokenizer import (
custom_tokenizer,
)
@registry.tokenizers("customize_tokenizer")
def make_customize_tokenizer():
def customize_tokenizer(nlp):
return custom_tokenizer(nlp)
return customize_tokenizer
|