stillerman commited on
Commit
ba012f0
·
verified ·
1 Parent(s): 368eda2

publish disfluency tagger

Browse files
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: token-classification
4
+ tags:
5
+ - disfluency-detection
6
+ - transformers.js
7
+ - onnx
8
+ ---
9
+
10
+ # stillerman/fdt-disfluency-tiny-4m
11
+
12
+ Disfluency **deletion tagger** for live speech transcripts: tags every
13
+ whitespace word `KEEP` / `DELETE` / `KEEP_STRIP_COMMA` / `KEEP_CAPITALIZE`,
14
+ then a ~15-line reconstruction turns tags into cleaned text. Deletion-only by
15
+ construction — it cannot rephrase, hallucinate, or alter names and numbers.
16
+
17
+ - Architecture: BERT L2/H128 (4.4M params), v1 data mix
18
+ - Val metrics: exact-match 0.5980, DELETE-F1 0.8892
19
+ - Training data: synthetic disfluency injection over conversational corpora —
20
+ see [stillerman/fdt-disfluency-synthetic](https://huggingface.co/datasets/stillerman/fdt-disfluency-synthetic)
21
+ - `onnx/model_quantized.onnx` (int8) is ready for transformers.js
22
+ (`device: "webgpu"`, `dtype: "q8"`); runs at ~10–50 ms per utterance
23
+ in-browser.
24
+ - ⚠️ Trained partly on DailyDialog (CC BY-NC-SA): treat as research
25
+ artifact, not for commercial deployment as-is.
26
+
27
+ Trained on a DGX Spark as part of the FluencyAI digital-twin project.
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 128,
14
+ "id2label": {
15
+ "0": "KEEP",
16
+ "1": "DELETE",
17
+ "2": "KEEP_STRIP_COMMA",
18
+ "3": "KEEP_CAPITALIZE"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 512,
22
+ "is_decoder": false,
23
+ "label2id": {
24
+ "DELETE": 1,
25
+ "KEEP": 0,
26
+ "KEEP_CAPITALIZE": 3,
27
+ "KEEP_STRIP_COMMA": 2
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 2,
33
+ "num_hidden_layers": 2,
34
+ "pad_token_id": 0,
35
+ "tie_word_embeddings": true,
36
+ "transformers_version": "5.13.0",
37
+ "type_vocab_size": 2,
38
+ "use_cache": true,
39
+ "vocab_size": 30522
40
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17c5d60c621c88eb9df65c9c41a353c747913eb96ad56b3d8261bfd8f60fdfe7
3
+ size 17484112
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5849d4d3c99c9a1cc4aee3adb515d899f680e638ff0a8931bc89044ea9d81d0c
3
+ size 4457981
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": false,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
val_metrics.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "del_p": 0.9639040607931608,
3
+ "del_r": 0.8251677170156536,
4
+ "del_f1": 0.8891566265060241,
5
+ "exact": 0.598,
6
+ "epoch": 2,
7
+ "params_m": 4.369924
8
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff