Update README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
license: mit
|
4 |
-
language:
|
5 |
- tr
|
6 |
metrics:
|
7 |
- accuracy
|
|
|
|
|
|
|
8 |
pipeline_tag: text-classification
|
9 |
---
|
10 |
|
@@ -42,20 +45,22 @@ pip install torch
|
|
42 |
|
43 |
## Example
|
44 |
|
|
|
45 |
```python
|
46 |
from transformers import ConvBertTokenizer, ConvBertForSequenceClassification,TextClassificationPipeline
|
47 |
|
48 |
-
tokenizer =
|
49 |
-
model = ConvBertForSequenceClassification.from_pretrained("
|
50 |
|
51 |
pipe= TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
52 |
|
53 |
print(pipe("Hadi modeli deneyelim"))
|
54 |
```
|
55 |
|
|
|
56 |
|
|
|
57 |
|
58 |
## Model Card Authors
|
59 |
|
60 |
-
* Bilge Nur BEKAR
|
61 |
-
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
license: mit
|
4 |
+
language:
|
5 |
- tr
|
6 |
metrics:
|
7 |
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
pipeline_tag: text-classification
|
12 |
---
|
13 |
|
|
|
45 |
|
46 |
## Example
|
47 |
|
48 |
+
|
49 |
```python
|
50 |
from transformers import ConvBertTokenizer, ConvBertForSequenceClassification,TextClassificationPipeline
|
51 |
|
52 |
+
tokenizer = ConvBertTokenizer.from_pretrained("AIZinu/convBERT-turk-based-cyberbullying")
|
53 |
+
model = ConvBertForSequenceClassification.from_pretrained("AIZinu/convBERT-turk-based-cyberbullying")
|
54 |
|
55 |
pipe= TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
56 |
|
57 |
print(pipe("Hadi modeli deneyelim"))
|
58 |
```
|
59 |
|
60 |
+
Result:
|
61 |
|
62 |
+
[{'label': 'LABEL_3', 'score': 0.9994651675224304}]
|
63 |
|
64 |
## Model Card Authors
|
65 |
|
66 |
+
* Bilge Nur BEKAR
|
|