我使用以下命令安装sim散列
pip install git+https://github.com/seomoz/simhash-py.git
要检查它是否已在下面成功安装,请看pip freeze的o/p
pip freeze | grep simhash
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
simhash-py==0.4.0
我有这样的数据帧:
apple aple apply
apple 0 0 0
aple 0 0 0
apply 0 0 0
我想要计算字符串距离,例如apple、->、aple等。我的最终结果是:
apple aple apply
apple 0 32 14
aple 32 0 30
apply 14 30 0
目前,这是我正在使用的代码(但它对于大数据来说非常慢):
columns = df.colu
我有一节课:
public class SimHasher {
int count = 0;
//take each string and make an int[] out of it
//should call Hash method lines.Count() times
public IEnumerable<int[]> HashAll(IEnumerable<string> lines) {
//return lines.Select(il => Hash(il));
var linesC