Home
last modified time | relevance | path

Searched refs:recognizer (Results 1 – 25 of 137) sorted by relevance

123456

/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3baserecognizer.c48 static void beginResync (pANTLR3_BASE_RECOGNIZER recognizer);
49 static pANTLR3_BITSET computeErrorRecoverySet (pANTLR3_BASE_RECOGNIZER recognizer);
50 static void endResync (pANTLR3_BASE_RECOGNIZER recognizer);
51 static void beginBacktrack (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 level);
52 static void endBacktrack (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 level, ANTLR3_BO…
54 static void * match (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSE…
55 static void matchAny (pANTLR3_BASE_RECOGNIZER recognizer);
56 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITS…
57 static ANTLR3_BOOLEAN mismatchIsUnwantedToken (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_ST…
58 static ANTLR3_BOOLEAN mismatchIsMissingToken (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STR…
[all …]
Dantlr3treeparser.c38 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSE…
46 static void * getCurrentInputSymbol (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM istrea…
47 static void * getMissingSymbol (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM istream, p…
111 antlr3MTNExceptionNew(pANTLR3_BASE_RECOGNIZER recognizer) in antlr3MTNExceptionNew() argument
115 antlr3RecognitionExceptionNew(recognizer); in antlr3MTNExceptionNew()
119 recognizer->state->exception->name = ANTLR3_MISMATCHED_TREE_NODE_NAME; in antlr3MTNExceptionNew()
120 recognizer->state->exception->type = ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION; in antlr3MTNExceptionNew()
174 mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) in mismatch() argument
176 recognizer->exConstruct(recognizer); in mismatch()
177 recognizer->recoverFromMismatchedToken(recognizer, ttype, follow); in mismatch()
[all …]
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3baserecognizer.h119 void * (*match) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer,
125 void (*matchAny) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer);
132 …(*mismatchIsUnwantedToken) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_INT_STREAM …
139 …(*mismatchIsMissingToken) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_INT_STREAM i…
144 void (*mismatch) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer,
164 void (*reportError) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer);
170 …void (*displayRecognitionError) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_UINT…
180 (*getNumberOfSyntaxErrors) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer);
186 void (*recover) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer);
191 void (*beginResync) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer);
[all …]
Dantlr3cyclicdfa.h71 …ANTLR3_INT32 (*specialStateTransition) (void * ctx, pANTLR3_BASE_RECOGNIZER recognizer, pANTLR…
73 …ANTLR3_INT32 (*specialTransition) (void * ctx, pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_I…
75 …ANTLR3_INT32 (*predict) (void * ctx, pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM …
/external/srec/srec/AcousticState/src/
DAcousticState.c25 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateReset(SR_Recognizer* recognizer) in SR_AcousticStateReset() argument
29 if (recognizer == NULL) in SR_AcousticStateReset()
34 impl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateReset()
36 return impl->acousticState->reset(recognizer); in SR_AcousticStateReset()
39 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateLoad(SR_Recognizer* recognizer, const LCHAR* … in SR_AcousticStateLoad() argument
43 if (recognizer == NULL) in SR_AcousticStateLoad()
48 impl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateLoad()
50 return impl->acousticState->load(recognizer, filename); in SR_AcousticStateLoad()
53 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSave(SR_Recognizer* recognizer, const LCHAR* … in SR_AcousticStateSave() argument
57 if (recognizer == NULL) in SR_AcousticStateSave()
[all …]
DAcousticStateImpl.c27 ESR_ReturnCode SR_AcousticStateCreateImpl(SR_Recognizer* recognizer) in SR_AcousticStateCreateImpl() argument
30 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateCreateImpl()
72 ESR_ReturnCode SR_AcousticStateDestroyImpl(SR_Recognizer* recognizer) in SR_AcousticStateDestroyImpl() argument
74 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateDestroyImpl()
81 ESR_ReturnCode SR_AcousticStateResetImpl(SR_Recognizer* recognizer) in SR_AcousticStateResetImpl() argument
83 SR_RecognizerImpl* recogImpl = (SR_RecognizerImpl*) recognizer; in SR_AcousticStateResetImpl()
96 ESR_ReturnCode SR_AcousticStateSaveImpl(SR_Recognizer* recognizer, const LCHAR* filename) in SR_AcousticStateSaveImpl() argument
/external/srec/srec_jni/
Dandroid_speech_srec_Recognizer.cpp112 (JNIEnv *env, jclass clazz, jint recognizer) { in Java_android_speech_srec_Recognizer_SR_1RecognizerStart() argument
113 checkEsrError(env, SR_RecognizerStart((SR_Recognizer*)recognizer)); in Java_android_speech_srec_Recognizer_SR_1RecognizerStart()
117 (JNIEnv *env, jclass clazz, jint recognizer) { in Java_android_speech_srec_Recognizer_SR_1RecognizerStop() argument
118 checkEsrError(env, SR_RecognizerStop((SR_Recognizer*)recognizer)); in Java_android_speech_srec_Recognizer_SR_1RecognizerStop()
123 SR_Recognizer* recognizer = NULL; in Java_android_speech_srec_Recognizer_SR_1RecognizerCreate() local
125 checkEsrError(env, SR_RecognizerCreate(&recognizer)); in Java_android_speech_srec_Recognizer_SR_1RecognizerCreate()
126 return (jint)recognizer; in Java_android_speech_srec_Recognizer_SR_1RecognizerCreate()
130 (JNIEnv *env, jclass clazz, jint recognizer) { in Java_android_speech_srec_Recognizer_SR_1RecognizerDestroy() argument
131 checkEsrError(env, SR_RecognizerDestroy((SR_Recognizer*)recognizer)); in Java_android_speech_srec_Recognizer_SR_1RecognizerDestroy()
136 (JNIEnv *env, jclass clazz, jint recognizer) { in Java_android_speech_srec_Recognizer_SR_1RecognizerSetup() argument
[all …]
/external/srec/srec/AcousticState/include/
DSR_AcousticState.h56 ESR_ReturnCode(*reset)(SR_Recognizer* recognizer);
64 ESR_ReturnCode(*load)(SR_Recognizer* recognizer, const LCHAR* filename);
72 ESR_ReturnCode(*save)(SR_Recognizer* recognizer, const LCHAR* filename);
80 ESR_ReturnCode(*get)(SR_Recognizer* recognizer, LCHAR *param_string, size_t* len );
88 ESR_ReturnCode(*set)(SR_Recognizer* recognizer, const LCHAR *param_string );
95 ESR_ReturnCode(*destroy)(SR_Recognizer* recognizer);
121 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateLoad(SR_Recognizer* recognizer, const LCHAR* …
129 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSave(SR_Recognizer* recognizer, const LCHAR* …
148 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateReset(SR_Recognizer* recognizer);
149 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSet ( SR_Recognizer* recognizer, const LCHAR …
[all …]
DSR_AcousticStateImpl.h49 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateCreateImpl(SR_Recognizer* recognizer);
53 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateDestroyImpl(SR_Recognizer* recognizer);
57 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateResetImpl(SR_Recognizer* recognizer);
61 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateLoadImpl(SR_Recognizer* recognizer, const LCH…
65 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSaveImpl(SR_Recognizer* recognizer, const LCH…
69 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSetImpl(SR_Recognizer* recognizer, const LCHA…
73 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateGetImpl(SR_Recognizer* recognizer, LCHAR *par…
77 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateActivateModelImpl(SR_Recognizer* recognizer, …
81 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateDeactivateModelImpl(SR_Recognizer* recognizer
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Ddfa.py48 recognizer, decisionNumber, argument
52 self.recognizer = recognizer
153 if self.recognizer._state.backtracking > 0:
/external/chromium_org/content/browser/speech/
Dspeech_recognition_manager_impl.cc147 session->recognizer = new SpeechRecognizerImpl( in CreateSession()
153 session->recognizer = new SpeechRecognizerImplAndroid(this, session_id); in CreateSession()
569 if (!session->recognizer.get() || !session->recognizer->IsActive()) in GetSessionState()
571 if (session->recognizer->IsCapturingAudio()) in GetSessionState()
596 session.recognizer->StartRecognition(device_id); in SessionStart()
602 DCHECK(session.recognizer.get()); in SessionAbort()
603 session.recognizer->AbortRecognition(); in SessionAbort()
608 DCHECK(session.recognizer.get()); in SessionStopAudioCapture()
609 session.recognizer->StopAudioCapture(); in SessionStopAudioCapture()
619 DCHECK(session->recognizer.get() == NULL || !session->recognizer->IsActive()); in SessionDelete()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDFA.m34 @synthesize recognizer;
41 recognizer = theRecognizer;
42 [recognizer retain];
145 if ([recognizer.state isBacktracking]) {
146 [recognizer.state setFailed:YES];
172 return [recognizer evaluateSyntacticPredicate:synpredFragment];
238 return recognizer;
243 if ( recognizer != aRecognizer ) {
244 if ( recognizer ) [recognizer release];
247 recognizer = aRecognizer;
/external/chromium_org/third_party/WebKit/Source/web/
DSpeechRecognitionClientProxy.cpp52 …SpeechRecognitionClientProxy> SpeechRecognitionClientProxy::create(WebSpeechRecognizer* recognizer) in create() argument
54 return adoptPtr(new SpeechRecognitionClientProxy(recognizer)); in create()
143 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy(WebSpeechRecognizer* recognizer) in SpeechRecognitionClientProxy() argument
144 : m_recognizer(recognizer) in SpeechRecognitionClientProxy()
/external/srec/doc/logs/uapi/
Drun_robustness3.log17 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
20 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
43 after recognizer.createGrammar(/system/usr/srec/grammar3.g2g)
141 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
144 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
167 after recognizer.createGrammar(/system/usr/srec/grammar3.g2g)
265 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
268 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
291 after recognizer.createGrammar(/system/usr/srec/grammar3.g2g)
389 after recognizer.createGrammar(/system/usr/srec/config/en.us/grammars/bothtags5.g2g)
[all …]
/external/srec/srec/test/SRecTest/src/
DSRecTest.c134 SR_Recognizer *recognizer; /* The current recognizer. */ member
425 …setup_status = SR_GrammarSetupRecognizer( data->grammars [grammar_num].grammar, data->recognizer ); in SetupGrammarLoad()
452 …setup_status = SR_RecognizerActivateRule ( data->recognizer, data->grammars [grammar_num].grammar,… in SetupGrammarActivate()
1011 …esr_status = SR_RecognizerDeactivateRule ( data->recognizer, data->grammars [data->active_grammar_… in srec_test_free_context()
1115 … esr_status = SR_RecognizerActivateRule ( data->recognizer, data->grammars [grammar_num].grammar, in srec_test_use_context()
1132 … SR_RecognizerDeactivateRule ( data->recognizer, data->grammars [grammar_num].grammar, in srec_test_use_context()
1216 esr_status = SR_RecognizerGetSize_tParameter ( data->recognizer, key, &value ); in srec_test_get_size_t_parameter()
1252 … esr_status = SR_RecognizerSetSize_tParameter ( data->recognizer, key, (size_t)value_as_number ); in srec_test_set_size_t_parameter()
1636 esr_status = SR_Recognizer_Change_Sample_Rate ( data->recognizer, rate_as_number ); in srec_test_change_sample_rate()
1669 esr_status = SR_AcousticStateSet ( data->recognizer, state_string ); in srec_test_set_acousticstate()
[all …]
/external/srec/srec/Grammar/src/
DSR_GrammarImpl.c64 impl->recognizer = NULL; in SR_Grammar_Create()
199 impl->recognizer->getModels( impl->recognizer, &models); in SR_Grammar_AddWordToSlot()
596 ESR_ReturnCode SR_Grammar_SetupRecognizer(SR_Grammar* self, SR_Recognizer* recognizer) in SR_Grammar_SetupRecognizer() argument
603 if (impl == NULL || recognizer == NULL) in SR_Grammar_SetupRecognizer()
608 impl->recognizer = recognizer; in SR_Grammar_SetupRecognizer()
609 recognizer->setWordAdditionCeiling( recognizer, self); in SR_Grammar_SetupRecognizer()
611 rc = recognizer->getModels( recognizer, &models); in SR_Grammar_SetupRecognizer()
613 impl->recognizer = NULL; in SR_Grammar_SetupRecognizer()
628 impl->recognizer = NULL; in SR_Grammar_UnsetupRecognizer()
/external/srec/srec/test/SRecTestAudio/src/
DSRecTestAudio.c133 SR_Recognizer *recognizer; /* The current recognizer. */ member
424 …setup_status = SR_GrammarSetupRecognizer( data->grammars [grammar_num].grammar, data->recognizer ); in SetupGrammarLoad()
452 …setup_status = SR_RecognizerActivateRule ( data->recognizer, data->grammars [grammar_num].grammar,… in SetupGrammarActivate()
987 …esr_status = SR_RecognizerSetBoolParameter ( data->recognizer, L("enableGetWaveform"), ESR_FALSE ); in srec_test_free_context()
1001 …esr_status = SR_RecognizerDeactivateRule ( data->recognizer, data->grammars [data->active_grammar_… in srec_test_free_context()
1105 … esr_status = SR_RecognizerActivateRule ( data->recognizer, data->grammars [grammar_num].grammar, in srec_test_use_context()
1111 … esr_status = SR_RecognizerSetBoolParameter ( data->recognizer, L("enableGetWaveform"), ESR_TRUE ); in srec_test_use_context()
1121 … SR_RecognizerDeactivateRule ( data->recognizer, data->grammars [grammar_num].grammar, in srec_test_use_context()
1471 esr_status = SR_AcousticStateLoad ( data->recognizer, file_name ); in srec_test_load_acousticstate()
1494 esr_status = SR_AcousticStateReset ( data->recognizer ); in srec_test_reset_acousticstate()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DDFA.cs67 protected BaseRecognizer recognizer; field in Antlr.Runtime.DFA
209 if ( recognizer.state.backtracking > 0 ) in NoViableAlt()
211 recognizer.state.failed = true; in NoViableAlt()
300 IDebugEventListener dbg = recognizer.DebugListener; in DebugRecognitionException()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DDFA.cs72 protected BaseRecognizer recognizer; field in Antlr.Runtime.DFA
177 if (recognizer.state.backtracking > 0) { in NoViableAlt()
178 recognizer.state.failed = true; in NoViableAlt()
261 IDebugEventListener dbg = recognizer.DebugListener; in DebugRecognitionException()
/external/srec/srec/Grammar/include/
DSR_GrammarImpl.h59 ESR_ReturnCode(*setupRecognizer)(SR_Grammar* self, SR_Recognizer* recognizer);
75 SR_Recognizer* recognizer; member
195 …GRAMMAR_API ESR_ReturnCode SR_Grammar_SetupRecognizer(SR_Grammar* self, SR_Recognizer* recognizer);
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DDFA.as25 /** Which recognizer encloses this DFA? Needed to check backtracking */
26 protected var recognizer:BaseRecognizer;
32 public function DFA(recognizer:BaseRecognizer, decisionNumber:int, description:String,
35 this.recognizer = recognizer;
154 if (recognizer.state.backtracking>0) {
155 recognizer.state.failed=true;
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugEventSocketProxy.cs63 protected BaseRecognizer recognizer; field in Antlr.Runtime.Debug.DebugEventSocketProxy
73 public DebugEventSocketProxy( BaseRecognizer recognizer, ITreeAdaptor adaptor ) : in DebugEventSocketProxy() argument
74 this( recognizer, DefaultDebuggerPort, adaptor ) in DebugEventSocketProxy()
78 public DebugEventSocketProxy( BaseRecognizer recognizer, int port, ITreeAdaptor adaptor ) in DebugEventSocketProxy() argument
80 this.grammarFileName = recognizer.GrammarFileName; in DebugEventSocketProxy()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugEventSocketProxy.cs63 protected BaseRecognizer recognizer; field in Antlr.Runtime.Debug.DebugEventSocketProxy
73 public DebugEventSocketProxy(BaseRecognizer recognizer, ITreeAdaptor adaptor) : in DebugEventSocketProxy() argument
74 this(recognizer, DefaultDebuggerPort, adaptor) { in DebugEventSocketProxy()
77 public DebugEventSocketProxy(BaseRecognizer recognizer, int port, ITreeAdaptor adaptor) { in DebugEventSocketProxy() argument
78 this.grammarFileName = recognizer.GrammarFileName; in DebugEventSocketProxy()
/external/chromium/chrome/browser/speech/
Dspeech_input_manager.cc133 scoped_refptr<SpeechRecognizer> recognizer; member
229 request->recognizer = new SpeechRecognizer( in StartRecognition()
250 requests_[caller_id].recognizer->StartRecording(); in StartRecognitionForRequest()
258 requests_[caller_id].recognizer->CancelRecognition(); in CancelRecognition()
281 requests_[caller_id].recognizer->StopRecording(); in StopRecording()
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRDFA.h42 ANTLRBaseRecognizer *recognizer; variable
47 @property (retain, getter=getRecognizer,setter=setRecognizer:) ANTLRBaseRecognizer *recognizer;

123456