Installing fasttext
fasttext is “an open-source, free, lightweight library that allows users to learn text representations and text classifiers”, and is used by languagetool to help in language identification.
Installation of fasttext using homebrew is either not possible or deprecated, but it's easy to compile from source.
- create a subdirectory to work in and
cdinto it - download fasttext
git clone https://github.com/facebookresearch/fastText.git cdinto the newly created./fasttextsubdirectory- type
makeand it will compile to generate a new binary called — unsurprisingly —fasttext - move the binary file to somewhere convenient in your path, such as
/usr/local/bin(you might need to be sudo for this) and check it can be found by typingwhich fasttext… this will return something like/usr/local/bin/fasttext
It's as simple as that.