File size: 1,122 Bytes
796a1b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
language: 
- en
- mr
tags:
- translation
- eng-marathi
license: apache-2.0
datasets:
- custom
---

# Eng_Marathi_translation

This model is designed to translate text from English to Marathi using a custom-trained Transformer model.

## Model Description

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.

## How to Use

Here is how to use this model to translate English text into Marathi in Python:

```python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("HariSekhar/Eng_Marathi_translation")
model = AutoModelForSeq2SeqLM.from_pretrained("HariSekhar/Eng_Marathi_translation")

text = "Your English text to translate."

inputs = tokenizer.encode(text, return_tensors="pt")
outputs = model.generate(inputs)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))