Downloads · 30 days
0
rahulvvunbxd/neuspell-subwordbert-probwordnoise
neuspell-subwordbert-probwordnoise is a machine learning model from rahulvvunbxd. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
towards a reliable workaround for the neuspell lib being broken
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2024
Repo size
3.7 GB
Likes
0
Public
Click a slice to open those files.
.tar2.2 GB · 75%
From the Hugging Face model README
towards a reliable workaround for the
neuspelllib being broken
See the github repository for usage and all official information.
Clone this model repo with git:
sudo apt-get install git-lfs -q
git clone https://huggingface.co/rahulvvunbxd/neuspell-subwordbert-probwordnoise
Install neuspell from pypi:
pip install -U neuspell -q
Use in python for spell correction:
from neuspell import BertChecker
checker = BertChecker()
checker.from_pretrained("./neuspell-subwordbert-probwordnoise/")
checker.correct("I luk foward to receving your reply") # correct a string
checker.correct_strings(
["I luk foward to receving your reply", "were did wendigo goe boating?"]
) # correct a list of strings