public RecognitionResult EmulateRecognize(RecognizedWordUnit[] wordUnits, CompareOptions compareOptions) { if (Enabled) { return(RecoBase.EmulateRecognize(wordUnits, compareOptions)); } throw new InvalidOperationException(SR.Get(SRID.RecognizerNotEnabled)); }
public RecognitionResult EmulateRecognize(string inputText, CompareOptions compareOptions) { if (Enabled) { return(RecoBase.EmulateRecognize(inputText, compareOptions)); } throw new InvalidOperationException(SR.Get(SRID.RecognizerNotEnabled)); }
public RecognitionResult EmulateRecognize(string inputText, CompareOptions compareOptions) { if (Grammars.Count == 0) { throw new InvalidOperationException(SR.Get(SRID.RecognizerHasNoGrammar)); } return(RecoBase.EmulateRecognize(inputText, compareOptions)); }
public RecognitionResult EmulateRecognize(RecognizedWordUnit[] wordUnits, CompareOptions compareOptions) { if (Grammars.Count == 0) { throw new InvalidOperationException(SR.Get(SRID.RecognizerHasNoGrammar)); } return(RecoBase.EmulateRecognize(wordUnits, compareOptions)); }
public RecognitionResult EmulateRecognize(string inputText) { if (Enabled) { return(RecoBase.EmulateRecognize(inputText)); } else { throw new InvalidOperationException(SR.Get(SRID.RecognizerNotEnabled)); } }