Reformatting.
This commit is contained in:
parent
41bfe0cbf0
commit
e0d587cd94
|
@ -63,6 +63,7 @@ def get_simhash(encoding, data):
|
||||||
simhash = Simhash(get_features(str_data)).value
|
simhash = Simhash(get_features(str_data)).value
|
||||||
return simhash
|
return simhash
|
||||||
|
|
||||||
|
|
||||||
def compute_difference(hx, hy):
|
def compute_difference(hx, hy):
|
||||||
"""Compute difference between two simhashes."""
|
"""Compute difference between two simhashes."""
|
||||||
assert hx.bit_length() == hy.bit_length()
|
assert hx.bit_length() == hy.bit_length()
|
||||||
|
|
Loading…
Reference in New Issue