Update README.md
Browse files
README.md
CHANGED
@@ -5,7 +5,7 @@ language:
|
|
5 |
library_name: transformers
|
6 |
---
|
7 |
|
8 |
-
#
|
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
|
17 |
|
18 |
# Load the tokenizer and model
|
19 |
-
tokenizer =
|
20 |
-
model =
|
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."
|