public SimpleTranscript(string transcript, linguist.dictionary.Dictionary dictionary, bool isExact) { this.transcript = transcript; this.dictionary = dictionary; this._isExact = isExact; this.wordSeparator = " \t\n\r\f"; }
public JSGFGrammar(string location, string grammarName, bool showGrammar, bool optimizeGrammar, bool addSilenceWords, bool addFillerWords, linguist.dictionary.Dictionary dictionary) : this(ConfigurationManagerUtils.resourceToURL(location), grammarName, showGrammar, optimizeGrammar, addSilenceWords, addFillerWords, dictionary) { }
public JSGFGrammar(URL baseURL, string grammarName, bool showGrammar, bool optimizeGrammar, bool addSilenceWords, bool addFillerWords, linguist.dictionary.Dictionary dictionary) : base(showGrammar, optimizeGrammar, addSilenceWords, addFillerWords, dictionary) { this.loadGrammar = true; this.logger = Logger.getLogger(Object.instancehelper_getClass(this).getName()); this.logMath = LogMath.getLogMath(); this.baseURL = baseURL; this.grammarName = grammarName; this.loadGrammar = true; }
public virtual void initialize(linguist.dictionary.Dictionary dictionary, bool isExact) { this.dictionary = dictionary; this._isExact = isExact; this.wasInitialized = true; }
public SimpleTranscript(linguist.dictionary.Dictionary dictionary, bool isExact) { this.initialize(dictionary, isExact); }
public virtual void add(string transcript, linguist.dictionary.Dictionary dictionary, bool isExact, string wordSeparator) { SimpleUtterance.logger.info(new StringBuilder().append("Transcript: ").append(transcript).toString()); this.transcriptSet.add(new SimpleTranscript(transcript, dictionary, isExact, wordSeparator)); }