UNPKG

word-models

Version:

node.js interface to the Google word2vec tool

16 lines (13 loc) 268 B
'use strict'; var w2v = require( './../lib' ); w2v.word2vec( __dirname + '/fixtures/phrases.txt', __dirname + '/fixtures/vectors.txt', { cbow: 1, size: 200, window: 8, negative: 25, hs: 0, sample: 1e-4, threads: 20, iter: 15, minCount: 2 });