arift commited on
Commit
e7ad4e7
1 Parent(s): 3f815c2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -3
README.md CHANGED
@@ -1,3 +1,33 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - tr
5
+ library_name: transformers
6
+ ---
7
+
8
+ # TyRoberta Model
9
+
10
+ This repository provides a pretrained Roberta model for Turkish by Trendyol, named TyRoberta. The model is useful for various natural language understanding tasks, such as text classification, named entity recognition, and more.
11
+
12
+
13
+ ## How to use
14
+
15
+ ```python
16
+ from transformers import AutoTokenizer, RobertaModel
17
+
18
+ # Load the tokenizer and model
19
+ tokenizer = AutoTokenizer.from_pretrained("Trendyol/tyroberta")
20
+ model = RobertaModel.from_pretrained("Trendyol/tyroberta")
21
+
22
+ # Define a sample text
23
+ text = "Filenin Sultanları ilk maçını 29 Temmuz'da Hollanda'ya karşı oynayacak."
24
+
25
+ # Tokenize and encode the input text
26
+ encoded_input = tokenizer(text, return_tensors='pt')
27
+
28
+ # Get the model's output
29
+ output = model(**encoded_input)
30
+
31
+ print(output)
32
+
33
+ ```