Skip to content

Commit 2cc659d

Browse files
author
lichuang
committed
word2vec for mac
1 parent 0794708 commit 2cc659d

9 files changed

Lines changed: 6 additions & 3 deletions

word2vec/compute-accuracy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#include <stdlib.h>
1717
#include <string.h>
1818
#include <math.h>
19-
#include <malloc.h>
19+
//#include <malloc.h>
20+
#include <stdlib.h>
2021
#include <ctype.h>
2122

2223
const long long max_size = 2000; // max length of strings

word2vec/demo-analogy.sh

100644100755
File mode changed.

word2vec/demo-classes.sh

100644100755
File mode changed.

word2vec/demo-phrase-accuracy.sh

100644100755
File mode changed.

word2vec/demo-phrases.sh

100644100755
File mode changed.

word2vec/demo-word-accuracy.sh

100644100755
File mode changed.

word2vec/demo-word.sh

100644100755
File mode changed.

word2vec/distance.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#include <stdio.h>
1616
#include <string.h>
1717
#include <math.h>
18-
#include <malloc.h>
18+
//#include <malloc.h>
19+
#include <stdlib.h>
1920

2021
const long long max_size = 2000; // max length of strings
2122
const long long N = 40; // number of closest words that will be shown

word2vec/word-analogy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#include <stdio.h>
1616
#include <string.h>
1717
#include <math.h>
18-
#include <malloc.h>
18+
//#include <malloc.h>
19+
#include <stdlib.h>
1920

2021
const long long max_size = 2000; // max length of strings
2122
const long long N = 40; // number of closest words that will be shown

0 commit comments

Comments
 (0)