arift commited on
Commit
317cf94
1 Parent(s): 67290e0

fix bert-roberta typo

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -5,19 +5,19 @@ language:
5
  library_name: transformers
6
  ---
7
 
8
- # TyRoberta 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
  ## 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/tybert")
20
- model = RobertaModel.from_pretrained("Trendyol/tybert")
21
 
22
  # Define a sample text
23
  text = "Filenin Sultanları ilk maçını 29 Temmuz'da Hollanda'ya karşı oynayacak."
 
5
  library_name: transformers
6
  ---
7
 
8
+ # TyBert Model
9
 
10
+ This repository provides a pretrained Bert 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
  ## How to use
14
 
15
  ```python
16
+ from transformers import BertTokenizer, BertModel
17
 
18
  # Load the tokenizer and model
19
+ tokenizer = BertTokenizer.from_pretrained("Trendyol/tybert")
20
+ model = BertModel.from_pretrained("Trendyol/tybert")
21
 
22
  # Define a sample text
23
  text = "Filenin Sultanları ilk maçını 29 Temmuz'da Hollanda'ya karşı oynayacak."