WriteRandomVectors writeRandomTask = new WriteRandomVectors(config);
writeRandomTask.run();
if(args.length==5){
config.set("Ivory.DotProdThreshFile", args[4]);
}
ComputeSignaturesRandom computeSignaturesTask = new ComputeSignaturesRandom(config);
computeSignaturesTask.run();
}else if(type.equals("Simhash")){
if(numOfBits!=64){
sLogger.info("Simhash signatures need to be 64 bits! Quitting...");
System.exit(0);
}
ComputeSignaturesSimhash computeSignaturesTask = new ComputeSignaturesSimhash(config);
computeSignaturesTask.run();
}else{ //minhash
ComputeSignaturesMinhash computeSignaturesTask = new ComputeSignaturesMinhash(config);
computeSignaturesTask.run();
}
return 0;
}