#NEWLINE# def _read_instance_block( self , stream , instance_filter = ( lambda inst : True ) ) : #NEWLINE# #INDENT# block = [ ] #NEWLINE# for i in range ( 100 ) : #NEWLINE# #INDENT# line = stream . readline ( ) . strip ( ) #NEWLINE# if line : #NEWLINE# #INDENT# inst = NombankInstance . parse ( line , self . _parse_fileid_xform , self . _parse_corpus ) #NEWLINE# if instance_filter ( inst ) : #NEWLINE# #INDENT# block . append ( inst ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return block