Views
No views yet
post_punc: Linear(768 -> 256 -> 17) — post-word punctuation (., ,, ?, !, :, ;, -, etc.)pre_punc: Linear(768 -> 256 -> 2) — pre-word punctuation (¿, ¡)sbd: Linear(772 -> 128 -> 2) — sentence boundary detectiontruecase: Linear(769 -> 128 -> 16) — per-character upper/lower case| File | Size | Description |
|---|---|---|
pcs-xlmr-base.gguf | 903 MB | Full-precision (F16) — reference quality |
pcs-xlmr-base-q4_k.gguf | 155 MB | Q4_K quantised — ~6x smaller |
1# Apply PCS to unpunctuated text
2crispasr --punc-model pcs-xlmr-base-q4_k.gguf \
3 -f audio.wav \
4 --backend parakeet
5
6# Standalone text processing
7echo "hello how are you doing today i am fine" | \
8 crispasr-pcs pcs-xlmr-base-q4_k.gguf
9# Output: "Hello, how are you doing today? I am fine."1#include "crispasr.h"
2
3void* pcs = crispasr_pcs_init("pcs-xlmr-base-q4_k.gguf");
4const char* result = crispasr_pcs_process(pcs, "hello how are you");
5// result: "Hello, how are you?"
6crispasr_pcs_free_text(result);
7crispasr_pcs_free(pcs);1final pcs = crispasr.PcsModel.open('pcs-xlmr-base-q4_k.gguf');
2final text = pcs.process('hello how are you doing today');
3print(text); // "Hello, how are you doing today?"
4pcs.close();| Model | Languages | Punct | Truecase | SBD | Size (Q4_K) |
|---|---|---|---|---|---|
| PCS | 47 | 17 types | per-char | yes | 155 MB |
| FireRedPunc | ZH + EN | yes | yes | no | ~100 MB |
| Fullstop-punc | EN/DE/FR/IT | yes | yes | no | ~300 MB |
| Truecaser LSTM | DE/EN/ES/RU | no | yes | no | ~3 MB |