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
Dimension
Gets the number of elements in this vector.
int Dimension { get; }
Property Value
Methods
GetAsDouble(int)
Gets the element at index as a double.
double GetAsDouble(int index)
Parameters
indexint
Returns
GetAsSingle(int)
Gets the element at index as a float.
float GetAsSingle(int index)
Parameters
indexint
Returns
ToDoubleBuffer()
Returns a read-only view of this vector as double values.
ReadOnlyMemory<double> ToDoubleBuffer()
Returns
ToSingleBuffer()
Returns a read-only view of this vector as float values.
ReadOnlyMemory<float> ToSingleBuffer()