word2vec: Train a model by word2vec.

Description Usage Arguments Details Value Author(s) References Examples

Description

Train a model by word2vec.

Usage

1
word2vec(train_file, output_file)

Arguments

train_file

Path of the train file.

output_file

Path of the output file.

Details

The word2vec tool takes a text corpus as input and produces the word vectors as output. It first constructs a vocabulary from the training text data and then learns vector representation of words. The resulting word vector file can be used as features in many natural language processing and machine learning applications.

Value

A word2vec object.

Author(s)

Jian Li <rweibo@sina.com>

References

https://code.google.com/p/word2vec/

Examples

1
2
3
4
## Not run: 
word2vec(system.file("examples", "rfaq.txt", package = "tmcn.word2vec"))

## End(Not run)

tmcn.word2vec documentation built on May 2, 2019, 6:16 p.m.