-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.yml
25 lines (22 loc) · 1.27 KB
/
basic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Format description for the config YAML file
website:
footnote: Pymarian Webapp Demo # string. Optional. Displayed at the bottom of translator/ subpage
translators:
# local model example
en-de-research: # string. Model key.
type: base # string. Optional. Model type: base|mtapi. Default: base
name: En-De research # string. Optional. Model name displayed in the select list
model: models/en-de/marian.en-de.best-perplexity.avx2.bin # string. Path to Marian model.
vocab: models/en-de/segmenter.spm # string. Pathto
sentence_breaking: false # bool. Optional. Use sentence breaker. Default: false
# doc_enabled: # bool. Optional. Indicate it's a DocMT model. Default: false
# Automatically enabled if sentence_breaking=true
# Microsoft Translator API example
en-de-prod: # string. Model key.
type: mtapi
name: En-De prod # string. Optional. Model name displayed in the select list
sentence_breaking: false
doc_enabled: true # bool. Optional. Indicate model can translate multiple sentences at once. Default: false
subscription-key: # string. Required for type=mtapi, but env var MTAPI_SUBSCRIPTION_KEY if value is None
source-language: en # string. Required for type=mtapi
target-language: de # string. Required for type=mtapi