README.md updated
Browse files- .DS_Store +0 -0
- .gitattributes +6 -28
- README.md +35 -3
- src/image.jpg +0 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
.gitattributes
CHANGED
@@ -1,31 +1,9 @@
|
|
1 |
-
*.
|
2 |
-
*.
|
3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
23 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
25 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.
|
27 |
-
*.
|
28 |
-
*.
|
29 |
-
*.
|
30 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
4 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
README.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## About the model
|
2 |
+
It is a bert-based model created to determine the types of bullying that people use against each other in social media.
|
3 |
+
Included classes;
|
4 |
+
|
5 |
+
- Nötr
|
6 |
+
- Kızdırma/Hakaret
|
7 |
+
- Cinsiyetçilik
|
8 |
+
- Irkçılık
|
9 |
+
|
10 |
+
3388 tweets were used in the training of the model. Accordingly, the success rates in education are as follows;
|
11 |
+
![alt text](/Users/seyma.sarigil/PycharmProjects/bert-base-turkish-bullying/src/image.jpg)
|
12 |
+
|
13 |
+
|
14 |
+
## Example
|
15 |
+
```sh
|
16 |
+
from transformers import AutoTokenizer, TextClassificationPipeline, TFBertForSequenceClassification
|
17 |
+
|
18 |
+
tokenizer = AutoTokenizer.from_pretrained("nanelimon/bert-base-turkish-bullying")
|
19 |
+
model = TFBertForSequenceClassification.from_pretrained("nanelimon/bert-base-turkish-bullying", from_pt=True)
|
20 |
+
pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
21 |
+
|
22 |
+
print(pipe('Bu bir denemedir hadi sende dene!'))
|
23 |
+
```
|
24 |
+
Result;
|
25 |
+
```sh
|
26 |
+
[{'label': 'Nötr', 'score': 0.999175488948822}]
|
27 |
+
```
|
28 |
+
label= It shows which class the sent Turkish text belongs to according to the model.
|
29 |
+
score= It shows the compliance rate of the Turkish text sent to the label found.
|
30 |
+
|
31 |
+
## License
|
32 |
+
|
33 |
+
gpl-3.0
|
34 |
+
|
35 |
+
**Free Software, Hell Yeah!**
|
src/image.jpg
ADDED