suayptalha
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- Helsinki-NLP/opus-100
|
5 |
+
language:
|
6 |
+
- tr
|
7 |
+
- en
|
8 |
+
base_model:
|
9 |
+
- google-t5/t5-base
|
10 |
+
pipeline_tag: text2text-generation
|
11 |
+
library_name: transformers
|
12 |
+
tags:
|
13 |
+
- translation
|
14 |
+
---
|
15 |
+
|
16 |
+
This is a English to Turkish t5-base finetuned model on Helsinki-NLP/opus-100
|
17 |
+
|
18 |
+
Example Usage
|
19 |
+
```py
|
20 |
+
#Load the model and tokenizer
|
21 |
+
plain_text = "Translate to Turkish: " #English text here!
|
22 |
+
inputs = tokenizer(cipher_text, return_tensors="pt", padding=True, truncation=True, max_length=256).to(device)
|
23 |
+
outputs = model.generate(inputs["input_ids"], max_length=256)
|
24 |
+
translated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
25 |
+
```
|
26 |
+
|
27 |
+
License: This model is on Apache-2.0 License. Check licence docs for more!
|