new Word2Vec(uidopt)
Word2Vec trains a model of `Map(String, Vector)`, i.e. transforms a word into a code for further
natural language processing or machine learning process.
Parameters:
Name |
Type |
Attributes |
Description |
uid |
string
|
<optional>
|
|
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
extra |
module:eclairjs/ml.param.ParamMap
|
|
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.ParamMap
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2VecModel
- Source:
Returns:
-
Type
-
string
getMaxIter() → {integer}
- Source:
Returns:
-
Type
-
integer
getMinCount() → {integer}
- Source:
Returns:
-
Type
-
integer
getNumPartitions() → {integer}
- Source:
Returns:
-
Type
-
integer
getOutputCol() → {string}
- Source:
Returns:
-
Type
-
string
getSeed() → {integer}
- Source:
Returns:
-
Type
-
integer
getStepSize() → {float}
- Source:
Returns:
-
Type
-
float
getVectorSize() → {integer}
- Source:
Returns:
-
Type
-
integer
getWindowSize() → {integer}
- Source:
Returns:
-
Type
-
integer
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
Param for maximum number of iterations (>= 0).
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.IntParam
The minimum number of times a token must appear to be included in the word2vec model's vocabulary. Default: 5
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.IntParam
Number of partitions for sentences of words. Default: 1
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.IntParam
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.Param
seed() → {module:eclairjs/ml/param.LongParam}
Param for random seed.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.LongParam
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
number
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
float
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Parameters:
Name |
Type |
Description |
value |
integer
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/ml/feature.Word2Vec
Param for Step size to be used for each iteration of optimization
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.DoubleParam
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
uid() → {string}
An immutable unique ID for the object and its derivatives.
- Source:
Returns:
-
Type
-
string
Validates and transforms the input schema.
Parameters:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
The dimension of the code that you want to transform from words. Default: 100
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.IntParam
The window size (context words from [-window, window]) default 5.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/param.IntParam