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/translation_analyzer.py
Executable file
11
BACK_BACK/OBSEI/analyzer/translation_analyzer.py
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
from obsei.analyzer.translation_analyzer import TranslationAnalyzer
|
||||
|
||||
# Translator does not need analyzer config
|
||||
analyzer_config = None
|
||||
|
||||
# initialize translator
|
||||
# For supported models refer https://huggingface.co/models?pipeline_tag=translation
|
||||
analyzer = TranslationAnalyzer(
|
||||
model_name_or_path="Helsinki-NLP/opus-mt-hi-en",
|
||||
device = "auto"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue