Search code examples
pythonfasttext

Spell checking using fastText model?


So I'm using fastText from its GitHub repo and wondering if it has build-in spell checking command.

If yes, how do I use them? and can I get full documentation of fastText because as in here answer from Kalana Geesara, I could use model.get_nearest_neighbor (and it worked) while I can't find it anywhere (even in the repo readme).

If no, is there any way for me to do spell checking with the model provided?

I am using english model provided here and code it without Gensim


Solution

  • I've solved the problem by using Peter Norvig's Spell Correction Algorithm and load it with fastText models.

    But I've to install it with Gensim since I only found a tutorial about it.