FLUJOS/BACK_BACK/OBSEI/analyzer/ner_analyzer.py
2025-11-07 00:06:12 +01:00

11 lines
No EOL
370 B
Python
Executable file

from obsei.analyzer.ner_analyzer import NERAnalyzer
# NER analyzer does not need configuration settings
analyzer_config=None
# initialize ner analyzer
# For supported models refer https://huggingface.co/models?filter=token-classification
text_analyzer = NERAnalyzer(
model_name_or_path="elastic/distilbert-base-cased-finetuned-conll03-english",
device = "auto"
)