Instructions to use OptimaMT/en-pt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use OptimaMT/en-pt with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('translation', 'OptimaMT/en-pt');
Download tokenizer_config.json from OptimaMT/en-pt: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/OptimaMT/en-pt/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://OptimaMT/en-pt/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/OptimaMT/en-pt/resolve/main/tokenizer_config.json
503 Bytes
| { | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "</s>", | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "separate_vocabs": false, | |
| "source_lang": "en", | |
| "sp_model_kwargs": {}, | |
| "target_lang": "fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la", | |
| "tokenizer_class": "MarianTokenizer", | |
| "unk_token": "<unk>" | |
| } | |