#NEWLINE# def add_feature( self , label , value = None ) : #NEWLINE# #INDENT# "\n        label: A VW label (not containing characters from escape_dict.keys(),\n            unless 'escape' mode is on)\n        value: float giving the weight or magnitude of this feature\n        " #NEWLINE# if self . escape : #NEWLINE# #INDENT# label = escape_vw_string ( label ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . validate : #NEWLINE# #INDENT# validate_vw_string ( label ) #NEWLINE# #UNINDENT# #UNINDENT# feature = ( label , value ) #NEWLINE# self . features . append ( feature )