Interface IWordVector

Namespace
NOpenNLP.Tools.Util.Wordvector
Assembly
NOpenNLP.Tools.dll

A word vector.

Warning: Experimental new feature, see OPENNLP-1144 for details, the API might be changed anytime.

[Experimental("NONLPEXP0001")]
public interface IWordVector

Properties

DataType

Gets the element type of this vector.

WordVectorType DataType { get; }

Property Value

WordVectorType

Dimension

Gets the number of elements in this vector.

int Dimension { get; }

Property Value

int

Methods

GetAsDouble(int)

Gets the element at index as a double.

double GetAsDouble(int index)

Parameters

index int

Returns

double

GetAsSingle(int)

Gets the element at index as a float.

float GetAsSingle(int index)

Parameters

index int

Returns

float

ToDoubleBuffer()

Returns a read-only view of this vector as double values.

ReadOnlyMemory<double> ToDoubleBuffer()

Returns

ReadOnlyMemory<double>

ToSingleBuffer()

Returns a read-only view of this vector as float values.

ReadOnlyMemory<float> ToSingleBuffer()

Returns

ReadOnlyMemory<float>