if(mode == CROSS_LINGUAL_F){
conf.setInt("Ivory.MinNumTerms",MinNumTermsPerArticle);
// translate term doc vectors into English.
conf.setBoolean("Ivory.Normalize", false);
BuildTranslatedTermDocVectors weightedTermVectorsTool = new BuildTranslatedTermDocVectors(conf);
weightedTermVectorsTool.run();
}else{
conf.setInt("Ivory.MinNumTerms",MinNumTermsPerArticle);
// get weighted term doc vectors
conf.setBoolean("Ivory.Normalize", false);
BuildWeightedTermDocVectors weightedTermVectorsTool = new BuildWeightedTermDocVectors(conf);
weightedTermVectorsTool.run();
}
LOG.info("Job finished in "+(System.currentTimeMillis()-startTime)/1000.0+" seconds");
// normalize (optional) and convert weighted term doc vectors into int doc vectors for efficiency
startTime = System.currentTimeMillis();