Skip to content

Latest commit

 

History

History
 
 

webassembly

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

fastText CircleCI

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.

Requirements

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.

Building WebAssembly binaries

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 git@github.com:facebookresearch/fastText.git

Build WebAssembly binaries:

$ cd fastText
$ make wasm