Word2VecModel Class

Definition

public class Word2VecModel : Microsoft.Spark.ML.Feature.FeatureBase<Microsoft.Spark.ML.Feature.Word2VecModel>
type Word2VecModel = class
    inherit FeatureBase<Word2VecModel>
Public Class Word2VecModel
Inherits FeatureBase(Of Word2VecModel)
Inheritance

Constructors

Word2VecModel()

Create a Word2VecModel without any parameters

Word2VecModel(String)

Create a Word2VecModel with a UID that is used to give the Word2VecModel a unique ID

Methods

Clear(Param)

Clears any value that was previously set for this Microsoft.Spark.ML.Feature.Param. The value is reset to the default value.

(Inherited from FeatureBase<T>)
ExplainParam(Param)

Returns a description of how a specific Microsoft.Spark.ML.Feature.Param works and is currently set.

(Inherited from FeatureBase<T>)
ExplainParams()

Returns a description of how all of the Microsoft.Spark.ML.Feature.Param's that apply to this object work and how they are currently set.

(Inherited from FeatureBase<T>)
FindSynonyms(String, Int32)

Find num number of words whose vector representation most similar to the supplied vector. If the supplied vector is the vector representation of a word in the model's vocabulary, that word will be in the results. Returns a dataframe with the words and the cosine similarities between the synonyms and the given word vector.

GetParam(String)

Retrieves a Microsoft.Spark.ML.Feature.Param so that it can be used to set the value of the Microsoft.Spark.ML.Feature.Param on the object.

(Inherited from FeatureBase<T>)
Load(String)

Loads the Word2VecModel that was previously saved using Save(string).

Save(String)

Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.

(Inherited from FeatureBase<T>)
Set(Param, Object)

Sets the value of a specific Microsoft.Spark.ML.Feature.Param.

(Inherited from FeatureBase<T>)
ToString()

Returns the JVM toString value rather than the .NET ToString default

(Inherited from FeatureBase<T>)
Transform(DataFrame)

Transform a sentence column to a vector column to represent the whole sentence.

Uid()

The UID that was used to create the object. If no UID is passed in when creating the object then a random UID is created when the object is created.

(Inherited from FeatureBase<T>)

Applies to