Skip to content

neouuid/word2vec_win32

Repository files navigation

About

word2vec_win32: build google word2vec with VS2013

You'd better build word2vec under Linux, if possible.

How to build

  1. download the source
  2. build word2vec_win32.sln with VS2013
  3. done

What are the differences?

  1. clone all the codes from https://code.google.com/p/word2vec/
  2. create VS2013 solution and projects based on the makefile
  3. make some chage so VS2013 will build the exes:

  • add this definination to all c files

    #define _CRT_SECURE_NO_WARNINGS

  • change some "const" to "#define", Ex.

    #define MAX_STRING 100

  • use _aligned_malloc to replace posix_memalign

    #define posix_memalign(p, a, s) (((*(p)) = _aligned_malloc((s), (a))), *(p) ?0 :errno)

  • add https://www.sourceware.org/pthreads-win32/ to project word2vec, and adjust inlude/lib path

  • that's it.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published