fr_trf_ner_wikiner / use_custom_tokenizer.py
Lazy-Val's picture
Update spaCy pipeline
21c1e6d verified
raw
history blame contribute delete
316 Bytes
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