Ransaka/sinhala-charbert-seq2seq

🤗 Hugging Face sourcemit701 MBother✓ 1 checksumupdated today
Submit in one command

Run it next to your model folder. It makes the torrent, checks your files against Hugging Face, and submits it. You just start seeding and paste your key from your account. It only reads your files and never changes them. Read the script first if you like.

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo Ransaka/sinhala-charbert-seq2seq ./model-folder
Needs a seeder →

Sinhala-CharBERT Seq2Seq Typo Corrector

Open-vocabulary seq2seq typo corrector for Sinhala. Dual-channel (subword + phonological akshara) encoder with an autoregressive akshara-level Transformer decoder. Designed as the optional neural backend (neural_backend="seq2seq" | "hybrid") of sinlib's TypoDetector.

Usage

from sinlib import TypoDetector

detector = TypoDetector(neural_backend="hybrid")  # uses this repo by default
print(detector("මම ගෙදර යන්ඩ ඕනේ"))   # මම ගෙදර යන්න ඕනේ
print(detector("මම gedara යන්න ඕනේ")) # මම ගෙදර යන්න ඕනේ