Downloads · 30 days
8
11% of all-time downloads
Ayaan-Sharif/t5-spelling-corrector-finetuned-v3
t5-spelling-corrector-finetuned-v3 is a machine learning model from Ayaan-Sharif. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This T5-based spelling correction model has been specifically fine-tuned on Indian financial documents containing monetary amounts, numeric text, and financial terminology written in English. The model addresses the c…
Downloads · 30 days
8
11% of all-time downloads
All-time downloads
72
Public
Parameters
223M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.8 GB · 67%
From the Hugging Face model README
This T5-based spelling correction model has been specifically fine-tuned on Indian financial documents containing monetary amounts, numeric text, and financial terminology written in English. The model addresses the critical challenge of correcting OCR errors and phonetic misspellings commonly found in Indian financial documents, invoices, receipts, and banking records.
The model excels at post-OCR text correction for Indian financial documents, where scanning quality issues create systematic spelling errors in monetary amounts. It's designed to handle:
from transformers import T5Tokenizer, T5ForConditionalGeneration
# Load model and tokenizer
model_name = "Ayaan-Sharif/t5-spelling-corrector-finetuned-v3"
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
# Example input (financial amount with OCR errors)
text = "One Hunderd Thousand Rupees"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=50, num_beams=4, early_stopping=True)
corrected = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("Original:", text)
print("Corrected:", corrected)
config.json: Model configurationmodel.safetensors: Model weights (SafeTensors format)tokenizer_config.json: Tokenizer configurationspiece.model: SentencePiece modelspecial_tokens_map.json: Special tokens mappingadded_tokens.json: Added tokensgeneration_config.json: Generation parameterstrainer_state.json, training_args.bin, optimizer.pt, etc.Install with: pip install transformers torch safetensors
If you use this model, please cite:
@misc{t5-spelling-corrector-indian-financial-v3,
title={T5 Spelling Corrector Fine-tuned v3 - Indian Financial Text Domain},
author={Ayaan-Sharif},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/Ayaan-Sharif/t5-spelling-corrector-finetuned-v3}
}
For questions or issues, please open an issue on this repository or contact the maintainer.