nickprock commited on
Commit
903add4
1 Parent(s): d39e2d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -1
README.md CHANGED
@@ -4,7 +4,12 @@ tags:
4
  - setfit
5
  - sentence-transformers
6
  - text-classification
 
7
  pipeline_tag: text-classification
 
 
 
 
8
  ---
9
 
10
  # setfit-italian-hate-speech
@@ -14,6 +19,14 @@ This is a [SetFit model](https://github.com/huggingface/setfit) that can be used
14
  1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
15
  2. Training a classification head with features from the fine-tuned Sentence Transformer.
16
 
 
 
 
 
 
 
 
 
17
  ## Usage
18
 
19
  To use this model for inference, first install the SetFit library:
@@ -30,7 +43,7 @@ from setfit import SetFitModel
30
  # Download from Hub and run inference
31
  model = SetFitModel.from_pretrained("setfit-italian-hate-speech")
32
  # Run inference
33
- preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
34
  ```
35
 
36
  ## BibTeX entry and citation info
@@ -47,3 +60,13 @@ year = {2022},
47
  copyright = {Creative Commons Attribution 4.0 International}
48
  }
49
  ```
 
 
 
 
 
 
 
 
 
 
 
4
  - setfit
5
  - sentence-transformers
6
  - text-classification
7
+ - hate speech
8
  pipeline_tag: text-classification
9
+ language:
10
+ - it
11
+ metrics:
12
+ - accuracy
13
  ---
14
 
15
  # setfit-italian-hate-speech
 
19
  1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
20
  2. Training a classification head with features from the fine-tuned Sentence Transformer.
21
 
22
+ This model detects the hate speech for italian language:
23
+ * 1 --> is hate speech
24
+ * 0 --> isn't hate speech
25
+
26
+ ## Dataset
27
+
28
+ `setfit-italian-hate-speech` is trained on [HaSpeeDe-FB](http://twita.di.unito.it/dataset/haspeede) dataset.
29
+
30
  ## Usage
31
 
32
  To use this model for inference, first install the SetFit library:
 
43
  # Download from Hub and run inference
44
  model = SetFitModel.from_pretrained("setfit-italian-hate-speech")
45
  # Run inference
46
+ preds = model(["Lei è una brutta bugiarda!", "Mi piace la pizza"])
47
  ```
48
 
49
  ## BibTeX entry and citation info
 
60
  copyright = {Creative Commons Attribution 4.0 International}
61
  }
62
  ```
63
+
64
+ ```bibtex
65
+ @inproceedings{del2017hate,
66
+ title={Hate me, hate me not: Hate speech detection on facebook},
67
+ author={Del Vigna12, Fabio and Cimino23, Andrea and Dell’Orletta, Felice and Petrocchi, Marinella and Tesconi, Maurizio},
68
+ booktitle={Proceedings of the first Italian conference on cybersecurity (ITASEC17)},
69
+ pages={86--95},
70
+ year={2017}
71
+ }
72
+ ```