#NEWLINE# def handle_request( self , message ) : #NEWLINE# #INDENT# request = parseRecognitionRequestMessage ( message ) #NEWLINE# if ( request . type == RecognitionRequestMessage . BATCH ) : #NEWLINE# #INDENT# self . handle_batch_request ( request ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not self . is_online_recognition_running ( ) ) : #NEWLINE# #INDENT# self . begin_online_recognition ( self ) #NEWLINE# #UNINDENT# if self . is_bad_chunk ( request ) : #NEWLINE# #INDENT# return self . handle_bad_chunk ( ) #NEWLINE# #UNINDENT# self . handle_online_request ( request )