Update README.md
Browse files
README.md
CHANGED
@@ -46,28 +46,4 @@ This model is finetuned on `Helsinki-NLP/opus-mt-en-inc` for English to Bangla T
|
|
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)
|
|
|
46 |
from transformers import pipeline
|
47 |
|
48 |
pipe = pipeline("translation", model="shhossain/opus-mt-en-to-bn")
|
49 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|