Memorandum of fastText (editing)

A note on fastText

official

The official GitHub repository is below. See the README for detailed installation instructions. fastText : https://github.com/facebookresearch/fastText

environment

The environment I tried this time is as follows.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

install python

Prepare python, numpy, and scipy in advance. Anaconda is convenient.

$ wget https://repo.continuum.io/archive/Anaconda3-4.4.0-Linux-x86_64.sh 

install c ++

You need c ++ to make fastText. If not, install it with the following command.

$ sudo apt-get install build-essential

Prepare fastText

Download and install from GitHub.

$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ make

Download trained model

Download the Japanese trained model distributed in the repository.

$ wget https://s3-us-west-1.amazonaws.com/fasttext-vectors/wiki.ja.zip .

While editing

Recommended Posts

Memorandum of fastText (editing)
Memorandum of sed
memorandum of vi command
elasticsearch_dsl Memorandum of Understanding
A memorandum of kernel compilation
A small memorandum of openpyxl
A memorandum of using eigen3
Memorandum on Memoization of recursive series
Memorandum of saving and loading model
[Django] Memorandum of environment construction procedure
[Python] A memorandum of beautiful soup4
Memorandum on Memoization of recursive functions
A memorandum of files under conf.d
Memorandum of beginners Python "isdigit" movement
A memorandum of closure survey contents
A memorandum of using Python's input function
A memorandum of speed of arbitrary degree diagonalization
Memorandum of python beginners About inclusion notation
A memorandum of understanding about django's QueryDict
Memorandum of Understanding when migrating with GORM
Vectorization of horse racing pedigree using fastText
A memorandum of python string deletion process
A memorandum of trouble when formatting data