Add language-detection
Browse files- README.md +7 -9
- config.json +9 -13
- examples.json +0 -0
- model.safetensors +2 -2
README.md
CHANGED
@@ -16,19 +16,17 @@ 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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
other: 120 examples (33.3%)
|
31 |
-
spanish: 48 examples (13.3%)
|
32 |
```
|
33 |
|
34 |
## Usage
|
@@ -52,7 +50,7 @@ classifier.add_examples(texts, labels)
|
|
52 |
|
53 |
## Training Details
|
54 |
|
55 |
-
- Training Steps:
|
56 |
- Examples per Class: See distribution above
|
57 |
- Prototype Memory: Active
|
58 |
- Neural Adaptation: Active
|
|
|
16 |
## Model Details
|
17 |
|
18 |
- Base Model: answerdotai/ModernBERT-base
|
19 |
+
- Number of Classes: 4
|
20 |
+
- Total Examples: 329
|
21 |
- Embedding Dimension: 768
|
22 |
|
23 |
## Class Distribution
|
24 |
|
25 |
```
|
26 |
+
english: 82 examples (24.9%)
|
27 |
+
french: 83 examples (25.2%)
|
28 |
+
other: 82 examples (24.9%)
|
29 |
+
spanish: 82 examples (24.9%)
|
|
|
|
|
30 |
```
|
31 |
|
32 |
## Usage
|
|
|
50 |
|
51 |
## Training Details
|
52 |
|
53 |
+
- Training Steps: 11
|
54 |
- Examples per Class: See distribution above
|
55 |
- Prototype Memory: Active
|
56 |
- Neural Adaptation: Active
|
config.json
CHANGED
@@ -32,21 +32,17 @@
|
|
32 |
},
|
33 |
"embedding_dim": 768,
|
34 |
"id_to_label": {
|
35 |
-
"0": "
|
36 |
-
"1": "
|
37 |
-
"2": "
|
38 |
-
"3": "
|
39 |
-
"4": "other",
|
40 |
-
"5": "french"
|
41 |
},
|
42 |
"label_to_id": {
|
43 |
-
"
|
44 |
-
"
|
45 |
-
"
|
46 |
-
"
|
47 |
-
"other": 4,
|
48 |
-
"spanish": 0
|
49 |
},
|
50 |
"model_name": "answerdotai/ModernBERT-base",
|
51 |
-
"train_steps":
|
52 |
}
|
|
|
32 |
},
|
33 |
"embedding_dim": 768,
|
34 |
"id_to_label": {
|
35 |
+
"0": "other",
|
36 |
+
"1": "french",
|
37 |
+
"2": "english",
|
38 |
+
"3": "spanish"
|
|
|
|
|
39 |
},
|
40 |
"label_to_id": {
|
41 |
+
"english": 2,
|
42 |
+
"french": 1,
|
43 |
+
"other": 0,
|
44 |
+
"spanish": 3
|
|
|
|
|
45 |
},
|
46 |
"model_name": "answerdotai/ModernBERT-base",
|
47 |
+
"train_steps": 11
|
48 |
}
|
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:a4b55b38f1092446591f208106b35ef2c21c5c20bbec5959a9941e1aa78509e7
|
3 |
+
size 3562896
|