Instructions to use Helsinki-NLP/opus-mt-zh-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-zh-en 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-zh-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-zh-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-zh-en") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ language:
|
|
| 6 |
tags:
|
| 7 |
- translation
|
| 8 |
|
| 9 |
-
license:
|
| 10 |
---
|
| 11 |
|
| 12 |
### zho-eng
|
|
@@ -27,7 +27,7 @@ license: apache-2.0
|
|
| 27 |
- **Language(s):**
|
| 28 |
- Source Language: Chinese
|
| 29 |
- Target Language: English
|
| 30 |
-
- **License:**
|
| 31 |
- **Resources for more information:**
|
| 32 |
- [GitHub Repo](https://github.com/Helsinki-NLP/OPUS-MT-train)
|
| 33 |
|
|
|
|
| 6 |
tags:
|
| 7 |
- translation
|
| 8 |
|
| 9 |
+
license: cc-by-4.0
|
| 10 |
---
|
| 11 |
|
| 12 |
### zho-eng
|
|
|
|
| 27 |
- **Language(s):**
|
| 28 |
- Source Language: Chinese
|
| 29 |
- Target Language: English
|
| 30 |
+
- **License:** CC-BY-4.0
|
| 31 |
- **Resources for more information:**
|
| 32 |
- [GitHub Repo](https://github.com/Helsinki-NLP/OPUS-MT-train)
|
| 33 |
|