Example #1
0
 /// <summary>
 /// Constructs the Vocabulary.
 /// </summary>
 /// <param name="vectorDimensions">The number of word vector dimensions</param>
 /// <param name="vectorType">The vector type used</param>
 public Vocabulary(
     int vectorDimensions,
     WordVectorType vectorType = WordVectorType.Random)
 {
     NumberOfDimensions       = vectorDimensions;
     VectorType               = vectorType;
     _labeledVectorDictionary = new Dictionary <string, float[]>();
 }
Example #2
0
 /// <summary>
 /// Constructs the Vocabulary.
 /// </summary>
 /// <param name="vectorDimensions">The number of word vector dimensions</param>
 /// <param name="vectorType">The vector type used</param>
 public Vocabulary(
     int vectorDimensions,
     WordVectorType vectorType = WordVectorType.Random)
 {
     NumberOfDimensions = vectorDimensions;
     VectorType = vectorType;
     _labeledVectorDictionary = new Dictionary<string, float[]>();            
 }