/// <summary> /// Creates a pronunciation /// </summary> /// <param name="units">represents the pronunciation</param> /// <param name="tag">a grammar specific tag</param> /// <param name="wordClassification">the classification for this word</param> /// <param name="probability">the probability of this pronunciation occurring</param> public Pronunciation(List <Unit> units, string tag, WordClassification wordClassification, float probability) { WordClassification = wordClassification; Units = units.ToArray(); Tag = tag; Probability = probability; }
/// <summary> /// Creates a pronunciation /// </summary> /// <param name="units">represents the pronunciation</param> /// <param name="tag">a grammar specific tag</param> /// <param name="wordClassification">the classification for this word</param> /// <param name="probability">the probability of this pronunciation occurring</param> public Pronunciation(Unit[] units, string tag, WordClassification wordClassification, float probability) { WordClassification = wordClassification; Units = units; Tag = tag; Probability = probability; }
/// <summary> /// Retrieves the pronunciations of this word /// </summary> /// <param name="wordClassification">the classification of the word (typically part /// of speech classification) or null if all word classifications are /// acceptable. The word classification must be one of the set /// returned by /// <code>Dictionary.getPossibleWordClassifications</code></param> /// <returns>the pronunciations of this word</returns> public Pronunciation[] GetPronunciations(WordClassification wordClassification) { return(_pronunciations); }