Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Train word embedding

`emb = trainWordEmbedding(filename)`

`emb = trainWordEmbedding(documents)`

`emb = trainWordEmbedding(___,Name,Value)`

`emb = trainWordEmbedding(___,`

specifies additional options using one or more name-value pair arguments. For
example, `Name,Value`

)`'Dimension',50`

specifies the word embedding dimension to
be 50.

The training algorithm uses the number of threads given by the function
`maxNumCompThreads`

. To learn how to change the number of threads
used by MATLAB^{®}, see `maxNumCompThreads`

.

`doc2sequence`

| `fastTextWordEmbedding`

| `readWordEmbedding`

| `tokenizedDocument`

| `vec2word`

| `word2vec`

| `wordEmbedding`

| `wordEmbeddingLayer`

| `wordEncoding`

| `writeWordEmbedding`