flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
11
BACK_BACK/OBSEI/analyzer/ner_analyzer.py
Executable file
11
BACK_BACK/OBSEI/analyzer/ner_analyzer.py
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
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"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue