2019-11-23から1日間の記事一覧

word2vecとgensimの環境構築と動作確認

Linuxの環境を前提とする。 コマンドラインで以下のコードを実行して、環境構築。 git clone https://github.com/svn2github/word2vec.git cd word2vec sed -i 's/<malloc.h>/<stdlib.h>/g' compute-accuracy.c sed -i 's/<malloc.h>/<stdlib.h>/g' distance.c sed -i 's/<malloc.h>/<stdlib.h>/g' word-analogy.c make ch</stdlib.h></malloc.h></stdlib.h></malloc.h></stdlib.h></malloc.h>…