Add content-moderation
Browse files- README.md +6 -7
- config.json +7 -9
- examples.json +0 -0
- model.safetensors +2 -2
README.md
CHANGED
@@ -16,17 +16,16 @@ You can install it with `pip install adaptive-classifier`.
|
|
16 |
## Model Details
|
17 |
|
18 |
- Base Model: answerdotai/ModernBERT-base
|
19 |
-
- Number of Classes:
|
20 |
-
- Total Examples:
|
21 |
- Embedding Dimension: 768
|
22 |
|
23 |
## Class Distribution
|
24 |
|
25 |
```
|
26 |
-
appropriate:
|
27 |
-
inappropriate:
|
28 |
-
|
29 |
-
toxic: 88 examples (23.4%)
|
30 |
```
|
31 |
|
32 |
## Usage
|
@@ -50,7 +49,7 @@ classifier.add_examples(texts, labels)
|
|
50 |
|
51 |
## Training Details
|
52 |
|
53 |
-
- Training Steps:
|
54 |
- Examples per Class: See distribution above
|
55 |
- Prototype Memory: Active
|
56 |
- Neural Adaptation: Active
|
|
|
16 |
## Model Details
|
17 |
|
18 |
- Base Model: answerdotai/ModernBERT-base
|
19 |
+
- Number of Classes: 3
|
20 |
+
- Total Examples: 252
|
21 |
- Embedding Dimension: 768
|
22 |
|
23 |
## Class Distribution
|
24 |
|
25 |
```
|
26 |
+
appropriate: 86 examples (34.1%)
|
27 |
+
inappropriate: 82 examples (32.5%)
|
28 |
+
spam: 84 examples (33.3%)
|
|
|
29 |
```
|
30 |
|
31 |
## Usage
|
|
|
49 |
|
50 |
## Training Details
|
51 |
|
52 |
+
- Training Steps: 8
|
53 |
- Examples per Class: See distribution above
|
54 |
- Prototype Memory: Active
|
55 |
- Neural Adaptation: Active
|
config.json
CHANGED
@@ -32,17 +32,15 @@
|
|
32 |
},
|
33 |
"embedding_dim": 768,
|
34 |
"id_to_label": {
|
35 |
-
"0": "
|
36 |
-
"1": "
|
37 |
-
"2": "
|
38 |
-
"3": "appropriate"
|
39 |
},
|
40 |
"label_to_id": {
|
41 |
-
"appropriate":
|
42 |
-
"inappropriate":
|
43 |
-
"
|
44 |
-
"toxic": 0
|
45 |
},
|
46 |
"model_name": "answerdotai/ModernBERT-base",
|
47 |
-
"train_steps":
|
48 |
}
|
|
|
32 |
},
|
33 |
"embedding_dim": 768,
|
34 |
"id_to_label": {
|
35 |
+
"0": "appropriate",
|
36 |
+
"1": "spam",
|
37 |
+
"2": "inappropriate"
|
|
|
38 |
},
|
39 |
"label_to_id": {
|
40 |
+
"appropriate": 0,
|
41 |
+
"inappropriate": 2,
|
42 |
+
"spam": 1
|
|
|
43 |
},
|
44 |
"model_name": "answerdotai/ModernBERT-base",
|
45 |
+
"train_steps": 8
|
46 |
}
|
examples.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:135f1483ace80b2fe4f8f339df5e40104e934611e1043d814fe118283691aab7
|
3 |
+
size 3558212
|