String targetLangDir = args[0];
String srcLangDir = args[1];
config.setInt("Ivory.NumMapTasks", 100);
RetrievalEnvironment targetEnv = new RetrievalEnvironment(targetLangDir, hdfs);
RetrievalEnvironment srcEnv = new RetrievalEnvironment(srcLangDir, hdfs);
config.set("Ivory.CollectionName", targetEnv.readCollectionName()+"_"+srcEnv.readCollectionName());
config.set("Ivory.IndexPath", targetLangDir);
// collection size is the sum of the two collections' sizes
int collSize = targetEnv.readCollectionDocumentCount()+srcEnv.readCollectionDocumentCount();
config.setInt("Ivory.CollectionDocumentCount", collSize);
///////Parameters/////////////
numOfBits = Integer.parseInt(args[2]);
signatureType = args[3].toLowerCase();