codelion commited on
Commit
6189d12
·
verified ·
1 Parent(s): 5f6f725

Add language-detection

Browse files
Files changed (4) hide show
  1. README.md +7 -9
  2. config.json +9 -13
  3. examples.json +0 -0
  4. 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: 6
20
- - Total Examples: 360
21
  - Embedding Dimension: 768
22
 
23
  ## Class Distribution
24
 
25
  ```
26
- chinese: 48 examples (13.3%)
27
- english: 48 examples (13.3%)
28
- french: 48 examples (13.3%)
29
- german: 48 examples (13.3%)
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: 12
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": "spanish",
36
- "1": "german",
37
- "2": "chinese",
38
- "3": "english",
39
- "4": "other",
40
- "5": "french"
41
  },
42
  "label_to_id": {
43
- "chinese": 2,
44
- "english": 3,
45
- "french": 5,
46
- "german": 1,
47
- "other": 4,
48
- "spanish": 0
49
  },
50
  "model_name": "answerdotai/ModernBERT-base",
51
- "train_steps": 12
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:9edb3fb0f240ba2d6f4f5e28a56d91b68104e769baecc84ffd1e5678f6a78b5d
3
- size 3572288
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4b55b38f1092446591f208106b35ef2c21c5c20bbec5959a9941e1aa78509e7
3
+ size 3562896