/// <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[]>(); }
/// <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[]>(); }