Update README.md
Browse files
README.md
CHANGED
@@ -32,7 +32,7 @@ model-index:
|
|
32 |
value: 1.771200
|
33 |
---
|
34 |
|
35 |
-
|
36 |
This model is finetuned on `Helsinki-NLP/opus-mt-en-inc` for English to Bangla Translation.
|
37 |
|
38 |
- **Developed by:** [shhossain](https://github.com/shhossain)
|
@@ -41,4 +41,34 @@ This model is finetuned on `Helsinki-NLP/opus-mt-en-inc` for English to Bangla T
|
|
41 |
- **License:** [apache-2.0]
|
42 |
- **Finetuned from model [Helsinki-NLP/opus-mt-en-inc]:** [Helsinki-NLP/opus-mt-en-inc](Helsinki-NLP/opus-mt-en-inc)
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
|
|
32 |
value: 1.771200
|
33 |
---
|
34 |
|
35 |
+
# English-Bengali Translation Model
|
36 |
This model is finetuned on `Helsinki-NLP/opus-mt-en-inc` for English to Bangla Translation.
|
37 |
|
38 |
- **Developed by:** [shhossain](https://github.com/shhossain)
|
|
|
41 |
- **License:** [apache-2.0]
|
42 |
- **Finetuned from model [Helsinki-NLP/opus-mt-en-inc]:** [Helsinki-NLP/opus-mt-en-inc](Helsinki-NLP/opus-mt-en-inc)
|
43 |
|
44 |
+
## Use with transformers
|
45 |
+
```python
|
46 |
+
from transformers import pipeline
|
47 |
+
|
48 |
+
pipe = pipeline("translation", model="shhossain/opus-mt-en-to-bn")
|
49 |
+
```
|
50 |
+
|
51 |
+
## Use with BanglaTranslationKit
|
52 |
+
|
53 |
+
BanglaTranslationKit is an open-source translation package for offline conversion between both Bengali and English languages (English to Bangla and Bangla to English)
|
54 |
+
|
55 |
+
### Installation
|
56 |
+
|
57 |
+
```bash
|
58 |
+
pip install bntrans
|
59 |
+
```
|
60 |
+
|
61 |
+
### Usage
|
62 |
+
|
63 |
+
You can use this package to translate any Bangla to English or English to Bangla.
|
64 |
+
|
65 |
+
```python
|
66 |
+
from bntrans import Translator
|
67 |
+
|
68 |
+
translator = Translator(src="en", dest="bn")
|
69 |
+
translation = translator.translate("Hello world!") # ্যালো বিশ্ব!
|
70 |
+
print(translation)
|
71 |
+
```
|
72 |
+
|
73 |
+
More info on [BanglaTranslationKit](https://github.com/shhossain/BanglaTranslationKit)
|
74 |
|