Update README.md
Browse files
README.md
CHANGED
@@ -10,4 +10,47 @@ metrics:
|
|
10 |
- precision
|
11 |
library_name: transformers
|
12 |
pipeline_tag: text-classification
|
13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
- precision
|
11 |
library_name: transformers
|
12 |
pipeline_tag: text-classification
|
13 |
+
---
|
14 |
+
|
15 |
+
|
16 |
+
# About the Model
|
17 |
+
|
18 |
+
This model is a Turkish-based convBERT model created to classify Turkish social media bullying data. Classes included in the model
|
19 |
+
|
20 |
+
* Cinsiyetçilik
|
21 |
+
* Irkçılık
|
22 |
+
* Kızdırma
|
23 |
+
* Nötr
|
24 |
+
|
25 |
+
|
26 |
+
The model was trained from a dataset containing 2981 Twitter data.
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
## Dependency
|
32 |
+
|
33 |
+
pip install transformers
|
34 |
+
|
35 |
+
pip install torch
|
36 |
+
|
37 |
+
|
38 |
+
## Example
|
39 |
+
|
40 |
+
|
41 |
+
```python
|
42 |
+
from transformers import BertTokenizer, BertForSequenceClassification,TextClassificationPipeline
|
43 |
+
|
44 |
+
tokenizer = ConvBertTokenizer.from_pretrained("AIZinu/bert-turkish-based-cyberbullying-model")
|
45 |
+
model = ConvBertForSequenceClassification.from_pretrained("AIZinu/bert-turkish-based-cyberbullying-model")
|
46 |
+
|
47 |
+
pipe= TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
48 |
+
|
49 |
+
print(pipe("Hadi modeli deneyelim"))
|
50 |
+
```
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
## Model Card Authors
|
55 |
+
|
56 |
+
* Bilge Nur BEKAR
|