def __init__(self, data, keyword_weight_pair=20, hash_bit_number=64, hashfunc=None, tokenizer_func=None):
    '\n        :param data: data that needs to be encode.\n        :param keyword_weight_pair: maximum pair number of the keyword-weight list.\n        :param hash_bit_number: maximum bit number for hashcode.\n        :param hashfunc: hash function,its first parameter must be data that needs to be encode\n                         and the second parameter must be hash bit number.\n\n        :param tokenizer_func: tokenizer function,its first parameter must be content that\n                               needs to be tokenizer and the second parameter must be\n                               keyword_weight_pair.\n        '
    if (hashfunc is None):
        self.hashfunc = _default_hashfunc
    else:
        self.hashfunc = hashfunc
    if (tokenizer_func is None):
        self.tokenizer_func = _default_tokenizer_func
    else:
        self.tokenizer_func = tokenizer_func
    self.hash_bit_number = hash_bit_number
    self.keyword_weight_pari = keyword_weight_pair
    if isinstance(data, Simhash):
        self.hash = data.hash
    elif isinstance(data, int):
        self.hash = data
    else:
        self.simhash(data)
:param data: data that needs to be encode.
:param keyword_weight_pair: maximum pair number of the keyword-weight list.
:param hash_bit_number: maximum bit number for hashcode.
:param hashfunc: hash function,its first parameter must be data that needs to be encode
                 and the second parameter must be hash bit number.

:param tokenizer_func: tokenizer function,its first parameter must be content that
                       needs to be tokenizer and the second parameter must be
                       keyword_weight_pair.
def __init__(self, data, keyword_weight_pair=20, hash_bit_number=64, hashfunc=None, tokenizer_func=None):
    '\n        :param data: data that needs to be encode.\n        :param keyword_weight_pair: maximum pair number of the keyword-weight list.\n        :param hash_bit_number: maximum bit number for hashcode.\n        :param hashfunc: hash function,its first parameter must be data that needs to be encode\n                         and the second parameter must be hash bit number.\n\n        :param tokenizer_func: tokenizer function,its first parameter must be content that\n                               needs to be tokenizer and the second parameter must be\n                               keyword_weight_pair.\n        '
    if (hashfunc is None):
        self.hashfunc = _default_hashfunc
    else:
        self.hashfunc = hashfunc
    if (tokenizer_func is None):
        self.tokenizer_func = _default_tokenizer_func
    else:
        self.tokenizer_func = tokenizer_func
    self.hash_bit_number = hash_bit_number
    self.keyword_weight_pari = keyword_weight_pair
    if isinstance(data, Simhash):
        self.hash = data.hash
    elif isinstance(data, int):
        self.hash = data
    else:
        self.simhash(data)