#NEWLINE# def InitPriorityProbability( self , label_set ) : #NEWLINE# #INDENT# label_to_priority_probability = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for label in label_set : #NEWLINE# #INDENT# label_to_priority_probability [ label ] = ( 1.0 / len ( label_set ) ) #NEWLINE# #UNINDENT# return label_to_priority_probability