arift commited on
Commit
67290e0
1 Parent(s): 291f808

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -5,7 +5,7 @@ language:
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
 
@@ -13,11 +13,11 @@ This repository provides a pretrained Roberta model for Turkish by Trendyol, nam
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."
 
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
 
 
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."