HariSekhar
commited on
Commit
•
796a1b4
1
Parent(s):
d48d691
Create README.md
Browse files
README.md
CHANGED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- mr
|
5 |
+
tags:
|
6 |
+
- translation
|
7 |
+
- eng-marathi
|
8 |
+
license: apache-2.0
|
9 |
+
datasets:
|
10 |
+
- custom
|
11 |
+
---
|
12 |
+
|
13 |
+
# Eng_Marathi_translation
|
14 |
+
|
15 |
+
This model is designed to translate text from English to Marathi using a custom-trained Transformer model.
|
16 |
+
|
17 |
+
## Model Description
|
18 |
+
|
19 |
+
The Eng_Marathi_translation model is a sequence-to-sequence Transformer model that has been fine-tuned for translating English text to Marathi. It uses a standard Transformer architecture with attention mechanisms that weigh the influence of different parts of the input sentence as the model predicts each word of the output sentence.
|
20 |
+
|
21 |
+
## How to Use
|
22 |
+
|
23 |
+
Here is how to use this model to translate English text into Marathi in Python:
|
24 |
+
|
25 |
+
```python
|
26 |
+
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
27 |
+
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("HariSekhar/Eng_Marathi_translation")
|
29 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("HariSekhar/Eng_Marathi_translation")
|
30 |
+
|
31 |
+
text = "Your English text to translate."
|
32 |
+
|
33 |
+
inputs = tokenizer.encode(text, return_tensors="pt")
|
34 |
+
outputs = model.generate(inputs)
|
35 |
+
|
36 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|