Instructions to use Helsinki-NLP/opus-mt-sem-sem with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-sem-sem 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-sem-sem")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-sem-sem") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-sem-sem") - Notebooks
- Google Colab
- Kaggle
Add multilingual to the language tag
Browse filesHi! A PR to add multilingual to the language tag to improve the referencing.
README.md
CHANGED
|
@@ -1,16 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
- mt
|
| 4 |
- ar
|
| 5 |
- he
|
| 6 |
- ti
|
| 7 |
- am
|
| 8 |
- sem
|
| 9 |
-
|
|
|
|
| 10 |
tags:
|
| 11 |
- translation
|
| 12 |
-
|
| 13 |
-
license: apache-2.0
|
| 14 |
---
|
| 15 |
|
| 16 |
### sem-sem
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
- mt
|
| 4 |
- ar
|
| 5 |
- he
|
| 6 |
- ti
|
| 7 |
- am
|
| 8 |
- sem
|
| 9 |
+
- multilingual
|
| 10 |
+
license: apache-2.0
|
| 11 |
tags:
|
| 12 |
- translation
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
### sem-sem
|