ParaphraseExample paraExample =new ParaphraseExample("what do people in the czech republic speak?",
"the official language of czech republic ?",new BooleanValue(true));
if(args[0].equals("full_matrix")) {
opts.similarityFunc="full_matrix";
VectorSpaceModel vsm = VectorSpaceModel.getSingleton();
Params params = new Params();
params.read("/Users/jonathanberant/Research/temp/918params"); //full matrix
vsm.printWordSimilarity(paraExample,params);
}
else if(args[0].equals("diagonal")) {
opts.similarityFunc="diagonal";
VectorSpaceModel vsm = VectorSpaceModel.getSingleton();
Params params = new Params();
params.read("/Users/jonathanberant/Research/temp/949params"); //diagonal
vsm.printWordSimilarity(paraExample,params);
}
else {
opts.similarityFunc="dot_product";
VectorSpaceModel vsm = VectorSpaceModel.getSingleton();
Params params = new Params();
params.read("/Users/jonathanberant/Research/temp/954params"); //diagonal
vsm.printWordSimilarity(paraExample,params);
}
}