File size: 1,415 Bytes
f20b4b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94ce7a3
 
 
 
 
 
 
 
 
f23c752
94ce7a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
---

language:
  - en
  - te
tags:
  - translation
  - machine-translation
  - NLP
  - pytorch
license: "cc-by-4.0"
datasets:
  - hima06varshini/english-telugu-parallel-corpus
widget:
  - text: "Translate this sentence from English to Telugu"
---

# **English-to-Telugu Translation Model** πŸ†  

## **πŸ“Œ Model Overview**  
This is a **Neural Machine Translation (NMT) model** trained to translate English sentences into Telugu using **Transformer-based architectures**.  

- βœ… **Handles complex sentence structures**  
- βœ… **Supports general & conversational language**  
- βœ… **Fine-tuned on English-Telugu parallel corpora**  

---

## **πŸ“– How to Use the Model**  
You can load this model using **Hugging Face Transformers**:  

```python

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer



model_name = "hima06varshini/english-to-telugu-translation"

token = "YOUR_ACCESS_TOKEN"  # Replace with your Hugging Face token if required



# Load Model & Tokenizer

model = AutoModelForSeq2SeqLM.from_pretrained(model_name, token=token)

tokenizer = AutoTokenizer.from_pretrained(model_name, token=token)



def translate(text):

    inputs = tokenizer(text, return_tensors="pt")

    outputs = model.generate(**inputs)

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



# Example Translation

text = "Hello, how are you?"

print(translate(text))