welcomyou commited on
Commit
431b1ce
·
verified ·
1 Parent(s): 51d38bb

docs: model card

Browse files
Files changed (1) hide show
  1. README.md +8 -9
README.md CHANGED
@@ -2,7 +2,7 @@
2
  library_name: ctranslate2
3
  pipeline_tag: translation
4
  license: apache-2.0
5
- base_model: protonx-models/protonx-legal-tc
6
  language:
7
  - vi
8
  tags:
@@ -12,21 +12,20 @@ tags:
12
  - vietnamese
13
  - ocr-correction
14
  - post-ocr
15
- - distillation
16
  ---
17
 
18
- # Distilled protonx-legal-tc — CTranslate2 (Vietnamese OCR text correction)
19
 
20
- Distilled + CTranslate2-converted version of [`protonx-models/protonx-legal-tc`](https://huggingface.co/protonx-models/protonx-legal-tc) for fast CPU OCR text correction on Vietnamese administrative documents.
21
 
22
- The original protonx-legal-tc is a seq2seq model trained for legal-text correction. This distilled CT2 build is optimized for CPU inference and used by the [ScanIndex](https://github.com/welcomyou/scanindex) pipeline as the correction stage between OCR and PDF/DOCX export.
23
 
24
- ## Performance (ScanIndex internal benchmark)
25
 
26
- | Variant | Time / 13 pages | Accuracy |
27
  |---|---|---|
28
- | protonx-legal-tc (CT2 OPTIMIZE, beam=1) | 14.5s | 99.561% |
29
- | **This distilled CT2 (beam=1)** | **8.3s** | **99.550%** |
30
 
31
  42% faster, 0.011 pp accuracy drop — recommended trade-off for CPU.
32
 
 
2
  library_name: ctranslate2
3
  pipeline_tag: translation
4
  license: apache-2.0
5
+ base_model: protonx-models/distilled-protonx-legal-tc
6
  language:
7
  - vi
8
  tags:
 
12
  - vietnamese
13
  - ocr-correction
14
  - post-ocr
 
15
  ---
16
 
17
+ # distilled-protonx-legal-tc — CTranslate2 build (Vietnamese OCR text correction)
18
 
19
+ CTranslate2-converted version of [`protonx-models/distilled-protonx-legal-tc`](https://huggingface.co/protonx-models/distilled-protonx-legal-tc), optimised for fast CPU OCR text correction on Vietnamese administrative documents.
20
 
21
+ The upstream `distilled-protonx-legal-tc` is a smaller student distilled from `protonx-legal-tc`. This repo only does the CT2 conversion + INT8 quantization no further training. Used by the [ScanIndex](https://github.com/welcomyou/scanindex) pipeline as the correction stage between OCR and PDF/DOCX export.
22
 
23
+ ## Performance (ScanIndex internal benchmark, 13-page Vietnamese admin doc)
24
 
25
+ | Variant | Time | Accuracy |
26
  |---|---|---|
27
+ | `protonx-legal-tc` CT2 OPTIMIZE, beam=1 | 14.5s | 99.561% |
28
+ | **This repo** (`distilled-protonx-legal-tc` CT2 INT8, beam=1) | **8.3s** | **99.550%** |
29
 
30
  42% faster, 0.011 pp accuracy drop — recommended trade-off for CPU.
31