コード例 #1
0
 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";
 }
コード例 #2
0
 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)
 {
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public virtual void initialize(linguist.dictionary.Dictionary dictionary, bool isExact)
 {
     this.dictionary     = dictionary;
     this._isExact       = isExact;
     this.wasInitialized = true;
 }
コード例 #5
0
 public SimpleTranscript(linguist.dictionary.Dictionary dictionary, bool isExact)
 {
     this.initialize(dictionary, isExact);
 }
コード例 #6
0
 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));
 }