#NEWLINE# def __flush2Cell( self , span , key , cell_max_X_depth , tgtLst ) : #NEWLINE# #INDENT# 'Flush the entries (dictionary entries/ candidate hypotheses) to the cell' #NEWLINE# if tgtLst : #NEWLINE# #INDENT# if ( key [ 0 ] == 'S' ) : #NEWLINE# #INDENT# Parse . chartDict [ span ] . has_S_tree = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key [ 0 ] == 'X' ) : #NEWLINE# #INDENT# Parse . chartDict [ span ] . has_X_tree = True #NEWLINE# Parse . chartDict [ span ] . top_X_level = cell_max_X_depth #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# Parse . chartDict [ span ] . add2Cell ( key , tgtLst )