#NEWLINE# def _check_size_x( self , x ) : #NEWLINE# #INDENT# features = self . _get_features ( x ) #NEWLINE# if ( features . shape [ 1 ] != self . n_features ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Unary evidence should have %d feature per node, got %s instead.' % ( self . n_features , features . shape [ 1 ] ) ) )