fastTextのインストール
$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ make
まず,上記のようにfastTextをclone
し,make
を実行します。
しかし,私の場合はここで,
error: no member named 'uint8_t' in the global namespace
error: no member named 'uint16_t' in the global namespace
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
と,大量のエラーが出てきてしまいました。
ここで,以下コマンドを実行後に再度make
を実行するとうまくいきました。
$ sudo mv /usr/local/include /usr/local/include.org
どうもmacOSをアップグレードした際に残った古いヘッダファイルが原因のようです。
詳しくは以下リンクを見てください。
macOSでコンパイルエラー: unknown typeとかno memberとかが大量に出たらやること
最後に,
$ pip install fasttext
を実行してください。