def __init__(self, connection, query, cr=None, idif=None, h=None, **kwargs):
        """
            Args:
                query -- A query string where all <, > and & characters that aren't supposed to be XML
                        tags, should be escaped or a dict where keys are query xpaths and values ether
                        query texts or nested dicts.
                        (see term()).
                See Request.__init__().

            Keyword args:
                cr -- Minimum ratio between the occurrence of the alternative and the occurrence of the search term.
                    If this parameter is increased, less results are returned while performance is improved. Default is 2.0.
                idif -- A number that limits how much the alternative may differ from the search term,
                    the greater the idif value, the greater the allowed difference.
                    If this parameter is increased, more results are returned while performance is decreased. Default is 3.0.
                h --  A number that limits the overall estimate of the quality of the alternative,
                    the greater the cr value and the smaller the idif value, the greater the h value.
                    If this parameter is increased, less results are returned while performance is improved. Default is 2.5.
                See Request.__init__()
        """
        Request.__init__(self, connection, 'alternatives', **kwargs)
        self.add_property(self.set_query, 'query', query)
        self.add_property(self.set_cr, 'cr', cr)
        self.add_property(self.set_idif, 'idif', idif)
        self.add_property(self.set_h, 'h', h)
def __init__ ( self , connection , query , cr = None , idif = None , h = None , ** kwargs ) : Request . __init__ ( self , connection , 'alternatives' , ** kwargs ) self . add_property ( self . set_query , 'query' , query ) self . add_property ( self . set_cr , 'cr' , cr ) self . add_property ( self . set_idif , 'idif' , idif ) self . add_property ( self . set_h , 'h' , h )
Args:
                query -- A query string where all <, > and & characters that aren't supposed to be XML
                        tags, should be escaped or a dict where keys are query xpaths and values ether
                        query texts or nested dicts.
                        (see term()).
                See Request.__init__().

            Keyword args:
                cr -- Minimum ratio between the occurrence of the alternative and the occurrence of the search term.
                    If this parameter is increased, less results are returned while performance is improved. Default is 2.0.
                idif -- A number that limits how much the alternative may differ from the search term,
                    the greater the idif value, the greater the allowed difference.
                    If this parameter is increased, more results are returned while performance is decreased. Default is 3.0.
                h --  A number that limits the overall estimate of the quality of the alternative,
                    the greater the cr value and the smaller the idif value, the greater the h value.
                    If this parameter is increased, less results are returned while performance is improved. Default is 2.5.
                See Request.__init__()