antypasd commited on
Commit
cf4aaa4
1 Parent(s): 31a6c4f

Upload TFRobertaForSequenceClassification

Browse files
Files changed (2) hide show
  1. README.md +43 -41
  2. tf_model.h5 +3 -0
README.md CHANGED
@@ -1,45 +1,47 @@
1
  ---
 
 
2
  model-index:
3
- - name: twitter-roberta-base-hate-latest
4
  results: []
5
- pipeline_tag: text-classification
6
- language:
7
- - en
8
  ---
9
- # cardiffnlp/twitter-roberta-base-hate-multiclass-latest
10
-
11
- This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-2022-154m](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m) for multiclass hate-speech classification. A combination of 13 different hate-speech datasets in the English language were used to fine-tune the model.
12
-
13
- ## Classes available
14
- ```
15
- {
16
- "sexism": 0,
17
- "racism": 1,
18
- "disability": 2,
19
- "sexual_orientation": 3,
20
- "religion": 4,
21
- "other": 5,
22
- "not-hate":6
23
- }
24
- ```
25
-
26
- ## Following metrics are achieved
27
- * Accuracy: 0.9419
28
- * Macro-F1: 0.5752
29
- * Weighted-F1: 0.9390
30
-
31
- ### Usage
32
- Install tweetnlp via pip.
33
- ```shell
34
- pip install tweetnlp
35
- ```
36
- Load the model in python.
37
- ```python
38
- import tweetnlp
39
- model = tweetnlp.Classifier("cardiffnlp/twitter-roberta-base-hate-latest")
40
- model.predict('Women are trash 2.')
41
- >> {'label': 'sexism'}
42
- model.predict('@user dear mongoloid respect sentiments & belief refrain totalitarianism. @user')
43
- >> {'label': 'disability'}
44
-
45
- ```
 
 
 
 
1
  ---
2
+ tags:
3
+ - generated_from_keras_callback
4
  model-index:
5
+ - name: twitter-roberta-base-hate-multiclass-latest
6
  results: []
 
 
 
7
  ---
8
+
9
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
10
+ probably proofread and complete it, then remove this comment. -->
11
+
12
+ # twitter-roberta-base-hate-multiclass-latest
13
+
14
+ This model was trained from scratch on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - optimizer: None
36
+ - training_precision: float32
37
+
38
+ ### Training results
39
+
40
+
41
+
42
+ ### Framework versions
43
+
44
+ - Transformers 4.30.2
45
+ - TensorFlow 2.12.0
46
+ - Datasets 2.10.1
47
+ - Tokenizers 0.12.1
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5676e731382c2042c19a82e95097b59fbab69359f6414c860f83a8d6f1e3d72f
3
+ size 498893632