Instructions to use Helsinki-NLP/opus-mt-en-cpf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-cpf with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-cpf")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-cpf") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-cpf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update metadata.json
Browse files- metadata.json +1 -1
metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"hf_name":"eng-cpf","source_languages":"eng","target_languages":"cpf","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/eng-cpf\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["en","ht","cpf"],"src_constituents":["eng"],"tgt_constituents":["gcf_Latn","hat","mfe"],"src_multilingual":false,"tgt_multilingual":true,"prepro":" normalization + SentencePiece (spm32k,spm32k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-cpf\/opus-2020-07-26.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-cpf\/opus-2020-07-26.test.txt","src_alpha3":"eng","tgt_alpha3":"cpf","short_pair":"en-cpf","chrF2_score":0.354,"bleu":15.9,"brevity_penalty":1.0,"ref_len":1012.0,"src_name":"English","tgt_name":"Creoles and pidgins, French\u2011based","train_date":"2020-07-26","src_alpha2":"en","tgt_alpha2":"cpf","prefer_old":false,"long_pair":"eng-cpf","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"
|
|
|
|
| 1 |
+
{"hf_name":"eng-cpf","source_languages":"eng","target_languages":"cpf","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/eng-cpf\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["en","ht","cpf"],"src_constituents":["eng"],"tgt_constituents":["gcf_Latn","hat","mfe"],"src_multilingual":false,"tgt_multilingual":true,"prepro":" normalization + SentencePiece (spm32k,spm32k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-cpf\/opus-2020-07-26.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-cpf\/opus-2020-07-26.test.txt","src_alpha3":"eng","tgt_alpha3":"cpf","short_pair":"en-cpf","chrF2_score":0.354,"bleu":15.9,"brevity_penalty":1.0,"ref_len":1012.0,"src_name":"English","tgt_name":"Creoles and pidgins, French\u2011based","train_date":"2020-07-26","src_alpha2":"en","tgt_alpha2":"cpf","prefer_old":false,"long_pair":"eng-cpf","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"2207e5d8cb224e954a7cba69fa4ac2309e9ff30b","port_machine":"brutasse","port_time":"2020-08-21-14:41"}
|