arift commited on
Commit
9772f7c
1 Parent(s): d9d9cb0

Update README.md

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