読者です 読者をやめる 読者になる 読者になる

fastText をコンパイルして example を叩いてみたぞい

github.com

  1. git clone して
  2. cd fastText して
  3. make
  4. wget がインストールされてなかったので brew install wget
  5. ./classification-example.sh を叩くぞい
$ time ./classification-example.sh
--2016-08-05 23:11:03--  https://googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k
Resolving googledrive.com... 2404:6800:400a:808::2001, 216.58.200.161
Connecting to googledrive.com|2404:6800:400a:808::2001|:443... failed: Connection refused.
Connecting to googledrive.com|216.58.200.161|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://8c47f35de2544a202d525720f08188d254682381.googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k [following]
--2016-08-05 23:11:03--  https://8c47f35de2544a202d525720f08188d254682381.googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k
Resolving 8c47f35de2544a202d525720f08188d254682381.googledrive.com... 2404:6800:4004:801::2001, 216.58.197.161
Connecting to 8c47f35de2544a202d525720f08188d254682381.googledrive.com|2404:6800:4004:801::2001|:443... failed: Connection refused.
Connecting to 8c47f35de2544a202d525720f08188d254682381.googledrive.com|216.58.197.161|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'data/dbpedia_csv.tar.gz'

data/dbpedia_csv.tar.gz                                [                              <=>                                                                                  ]  65.17M  10.9MB/s   in 6.0s

2016-08-05 23:11:10 (10.8 MB/s) - 'data/dbpedia_csv.tar.gz' saved [68341698]

x dbpedia_csv/
x dbpedia_csv/classes.txt
x dbpedia_csv/test.csv
x dbpedia_csv/train.csv
x dbpedia_csv/readme.txt
make: Nothing to be done for `all'.
Read 32M words
Progress: 100.0%  words/sec/thread: 2064701  lr: 0.000001  loss: 0.089004  eta: 0h0m
Train time: 24.000000 sec
P@1: 0.985
Number of examples: 70000
./classification-example.sh  185.58s user 5.97s system 216% cpu 1:28.33 total

早い(確信