Views
No views yet
towards a reliable workaround for theneuspelllib being broken
1sudo apt-get install git-lfs -q
2git clone https://huggingface.co/pszemraj/neuspell-subwordbert-probwordnoiseneuspell from pypi:pip install -U neuspell -q1from neuspell import BertChecker
2
3checker = BertChecker()
4checker.from_pretrained("./neuspell-subwordbert-probwordnoise/")
5
6checker.correct("I luk foward to receving your reply") # correct a string
7
8checker.correct_strings(
9 ["I luk foward to receving your reply", "were did wendigo goe boating?"]
10) # correct a list of strings