Downloads · 30 days
6
21% of all-time downloads
Kwash67/sentidp-ner_20k
sentidp-ner_20k is a machine learning model from Kwash67. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned LayoutLMv3 for Ghanaian Invoice Information Extraction
Downloads · 30 days
6
21% of all-time downloads
All-time downloads
29
Public
Parameters
357M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
Fine-tuned LayoutLMv3 for Ghanaian Invoice Information Extraction
SentIDP Invoice NER is a named entity recognition model for automated extraction of key fields from Ghanaian business invoices. It is fine-tuned on top of albertosei/invoice-ner-v2-amaye15, which was originally trained on 13,000 invoice images using docTR OCR.
This model was developed by the TYNCAD team as part of an Intelligent Document Processing pipeline tailored specifically to the Ghanaian business context — including GRA tax rules, local company naming conventions, Ghanaian banks, Mobile Money (MoMo), and GHS currency formats.
| Parameter | Value |
|---|---|
| Base model | albertosei/invoice-ner-v2-amaye15 |
| Epochs completed | 2 of 3 |
| Train samples | 18,000 |
| Validation samples | 2,000 |
| Batch size | 2 (gradient accumulation: 2) |
| Learning rate | 5e-5 |
| Weight decay | 0.01 |
| Max sequence length | 512 |
| Precision | fp16 |
| Hardware | 2× NVIDIA Tesla T4 (Kaggle) |
Evaluated on 2,000 held-out validation invoices after each epoch:
| Epoch | Training Loss | Validation Loss | F1 | Precision | Recall |
|---|---|---|---|---|---|
| 1 | 0.0361 | 0.0170 | 0.9974 | 0.9972 | 0.9975 |
| 2 | 0.0197 | 0.0095 | 0.9988 | 0.9991 | 0.9985 |
The model extracts the following fields using BIO tagging:
| Category | Labels |
|---|---|
| Document header | HEADER_TYPE, HEADER_NUMBER, HEADER_DATE, DUE_DATE, PO_NUMBER |
| Seller | SELLER_NAME, SELLER_ADDRESS, SELLER_TIN |
| Buyer | BUYER_NAME, BUYER_ADDRESS |
| Line items | ITEM_DESC, QTY, UNIT_PRICE, LINE_TOTAL |
| Financials | SUBTOTAL, TAX_AMOUNT, GRAND_TOTAL, AMOUNT_WORDS |
| Payment | PAYMENT_TERMS, BANK_NAME, ACCOUNT_NUMBER, MOMO_DETAILS |
| Signatories | PREPARED_BY, AUTHORISED_BY |
| Other | O, B-OTHER |
TYNCAD
If you use this model, please cite:
@misc{sentidp-invoice-ner-2025,
title = {SentIDP Invoice NER — Ghanaian Invoice Information Extraction},
author = {TYNCAD},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/albertosei/sentidp-ner_20k}
}