11 lines
No EOL
370 B
Python
Executable file
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"
|
|
) |