Description Usage Arguments Author(s) Examples
A function of word2vec training .
1 2 3 4 5 |
file_path |
Corpus file path . |
model_path |
Word2vec mode saving path. |
word_vectors_size |
Word vector size ,default 128. |
num_iters |
Number of iterations,default 10. |
word_min_freq |
This will discard words that appear less than <int> times; default is 5 |
window_size |
Max skip length between words; default is 5. |
neg_sample |
Negative sample number,default 5. |
type |
|
alpha |
the starting learning rate; default is 0.025 for |
threads_num |
the threads number default 2. |
qxde01
1 2 3 4 | ## Not run:
hanlp.word2vecTrain(file_path='text.txt',model_path = 'word2vec.txt')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.