- Build the image with
docker build . -t jamspell
- Run the command
docker run -it jamspell bash
Sample data is taken from http://peeter.eki.ee:5000/valence/paragraphsquery/
./main/jamspell train alphabet_et.txt postimees.txt estonski.bin
import jamspell
corrector = jamspell.TSpellCorrector()
corrector.LoadLangModel('estonski.bin')
corrector.FixFragment('Mul on sur problem!')