#NEWLINE# def likelihood( self , vector , label ) : #NEWLINE# #INDENT# '\n        Returns the likelihood (a float) of the token having the\n        corresponding cluster.\n        ' #NEWLINE# if ( self . classify ( vector ) == label ) : #NEWLINE# #INDENT# return 1.0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0.0