Open xiran210 opened 1 year ago
when i run the code that:
import xiangshi as xs # Simhash print(xs.simhash(["-", "-"])) # Minhash print(xs.minhash(["-", "-"]))
it will cause errors
File "/home/tuxiaobei/.local/lib/python3.8/site-packages/xiangshi/main.py", line 214, in minhash return intersect / total ZeroDivisionError: division by zero
and i use the xiangshi:4.1.0
Yes I have noticed that error, will fix this as soon as I can and update it in the new version. 发现错误了,将在下个版本中修复。
when i run the code that:
it will cause errors
File "/home/tuxiaobei/.local/lib/python3.8/site-packages/xiangshi/main.py", line 214, in minhash return intersect / total ZeroDivisionError: division by zero
and i use the xiangshi:4.1.0