#NEWLINE# def read_rev_labels( f ) : #NEWLINE# #INDENT# ( rev_id , label ) = f . readline ( ) . strip ( ) . split ( '\t' ) #NEWLINE# if ( rev_id != 'rev_id' ) : #NEWLINE# #INDENT# ( yield ( int ( rev_id ) , rev_id ) ) #NEWLINE# #UNINDENT# for line in f : #NEWLINE# #INDENT# ( rev_id , label ) = line . strip ( ) . split ( '\t' ) #NEWLINE# ( yield ( int ( rev_id ) , label ) )