/// <summary> /// Returns the entire set of words, including filler words /// </summary> /// <returns>the set of all words (as Word objects)</returns> private HashSet <Word> GetAllWords() { if (_allWords == null) { _allWords = new HashSet <Word>(); foreach (String spelling in _lm.Vocabulary) { Word word = Dictionary.GetWord(spelling); //TODO: For some reason CMUSPHINX adds a filler here if (word != null) { _allWords.Add(word); } } if (_addFillerWords) { Java.AddAll(_allWords, Dictionary.GetFillerWords()); } else if (AddSilenceWord) { _allWords.Add(Dictionary.GetSilenceWord()); } } return(_allWords); }
public void add(Cluster c) { if (c.startTime < startTime) { startTime = c.startTime; } if (c.endTime > endTime) { endTime = c.endTime; } Java.AddAll(elements, c.getElements()); }