Instructions to use Helsinki-NLP/opus-mt-en-bnt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-bnt 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-bnt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-bnt") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-bnt", 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-bnt","source_languages":"eng","target_languages":"bnt","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/eng-bnt\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["en","sn","zu","rw","lg","ts","ln","ny","xh","rn","bnt"],"src_constituents":["eng"],"tgt_constituents":["sna","zul","kin","lug","tso","lin","nya","xho","swh","run","toi_Latn","umb"],"src_multilingual":false,"tgt_multilingual":true,"prepro":" normalization + SentencePiece (spm32k,spm32k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-bnt\/opus-2020-07-26.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-bnt\/opus-2020-07-26.test.txt","src_alpha3":"eng","tgt_alpha3":"bnt","short_pair":"en-bnt","chrF2_score":0.449,"bleu":12.1,"brevity_penalty":1.0,"ref_len":9989.0,"src_name":"English","tgt_name":"Bantu languages","train_date":"2020-07-26","src_alpha2":"en","tgt_alpha2":"bnt","prefer_old":false,"long_pair":"eng-bnt","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"
|
|
|
|
| 1 |
+
{"hf_name":"eng-bnt","source_languages":"eng","target_languages":"bnt","opus_readme_url":"https:\/\/github.com\/Helsinki-NLP\/Tatoeba-Challenge\/tree\/master\/models\/eng-bnt\/README.md","original_repo":"Tatoeba-Challenge","tags":["translation"],"languages":["en","sn","zu","rw","lg","ts","ln","ny","xh","rn","bnt"],"src_constituents":["eng"],"tgt_constituents":["sna","zul","kin","lug","tso","lin","nya","xho","swh","run","toi_Latn","umb"],"src_multilingual":false,"tgt_multilingual":true,"prepro":" normalization + SentencePiece (spm32k,spm32k)","url_model":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-bnt\/opus-2020-07-26.zip","url_test_set":"https:\/\/object.pouta.csc.fi\/Tatoeba-MT-models\/eng-bnt\/opus-2020-07-26.test.txt","src_alpha3":"eng","tgt_alpha3":"bnt","short_pair":"en-bnt","chrF2_score":0.449,"bleu":12.1,"brevity_penalty":1.0,"ref_len":9989.0,"src_name":"English","tgt_name":"Bantu languages","train_date":"2020-07-26","src_alpha2":"en","tgt_alpha2":"bnt","prefer_old":false,"long_pair":"eng-bnt","helsinki_git_sha":"480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535","transformers_git_sha":"2207e5d8cb224e954a7cba69fa4ac2309e9ff30b","port_machine":"brutasse","port_time":"2020-08-21-14:41"}
|