fastText is a library for efficient learning of word representations and sentence classification.
In this document we present how to use fastText in a browser with WebAssembly.
fastText builds on modern Mac OS and Linux distributions. Since it uses C++11 features, it requires a compiler with good C++11 support. You will need emscripten and a browser that supports WebAssembly.
First, download and install emscripten sdk as described here
Make sure you activated the PATH for emscripten:
$ source /path/to/emsdk/emsdk_env.sh
Clone our repository.
$ git clone [email protected]:facebookresearch/fastText.git
Build WebAssembly binaries:
$ cd fastText
$ make wasm