Interface IWordVectorTable
- Namespace
- NOpenNLP.Tools.Util.Wordvector
- Assembly
- NOpenNLP.Tools.dll
A table that maps tokens to word vectors.
Warning: Experimental new feature, see OPENNLP-1144 for details, the API might be changed anytime.
[Experimental("NONLPEXP0001")]
public interface IWordVectorTable : IEnumerable<string>, IEnumerable
- Inherited Members
Remarks
NOpenNLP: tokens() method replaced with IEnumerable<T> implementation.
Properties
Count
Gets the number of tokens in this table.
int Count { get; }
Property Value
Dimension
Gets the dimension of the vectors in this table, or -1 if the table is empty.
int Dimension { get; }
Property Value
Methods
Get(string)
Gets the vector for token, or null if the token is not in the table.
IWordVector? Get(string token)
Parameters
tokenstring