neuspell-subwordbert-probwordnoise
towards a reliable workaround for the
neuspell
lib being broken
See the github repository for usage and all official information.
Usage
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