word2vec

make
gcc word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-result
cc1: error: unrecognized command line option "-Wno-unused-result"
word2vec.c:1: error: bad value (native) for -march= switch
word2vec.c:1: error: bad value (native) for -mtune= switch
make: *** [word2vec] Error 1

Here we need modified the Makefile for mac os:

3 #CFLAGS = -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-re sult
4 CFLAGS = -lm -pthread -O3 -Wall -funroll-loops

 

原文链接:http://textminingonline.com/getting-started-with-word2vec-and-glove

posted on 2016-11-09 12:45  tsw123  阅读(325)  评论(0编辑  收藏  举报

导航