Instructions to use stillerman/fdt-disfluency-small-29m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use stillerman/fdt-disfluency-small-29m with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'stillerman/fdt-disfluency-small-29m');
publish disfluency tagger
Browse files- README.md +27 -0
- config.json +40 -0
- model.safetensors +3 -0
- onnx/model_quantized.onnx +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- val_metrics.json +8 -0
- vocab.txt +0 -0
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-small-29m
|
| 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 L4/H512 (28.5M params), v1 data mix
|
| 18 |
+
- Val metrics: exact-match 0.9325, DELETE-F1 0.9885
|
| 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": 512,
|
| 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": 2048,
|
| 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": 8,
|
| 33 |
+
"num_hidden_layers": 4,
|
| 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:1e22e78f915b9a7780bd142af312eb384b81a1b9fc932873e1efced4237e6864
|
| 3 |
+
size 114020336
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4943676614beab903a1221734419004d5f1923988795ed570fe656c30853c14
|
| 3 |
+
size 28725303
|
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.9825266117694316,
|
| 3 |
+
"del_r": 0.9945110794877008,
|
| 4 |
+
"del_f1": 0.9884825217215599,
|
| 5 |
+
"exact": 0.9325,
|
| 6 |
+
"epoch": 1,
|
| 7 |
+
"params_m": 28.503044
|
| 8 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|