ConfigFileConverter.convertMertToJoshuaFormat(joshuaConfigForZmert, joshuaConfigTempalte, trueJoshuaConfigFile);
//============== generate nbest by joshua decoder
logger.info("joshua decoding using " + trueJoshuaConfigFile);
JoshuaDecoder decoder = new JoshuaDecoder(trueJoshuaConfigFile);
String nbestTemFile = nbestFile + ".tem";
decoder.decodeTestSet(testFile, nbestTemFile, null);
decoder.cleanUp();
//============== convert nbest to mert format
List<Double> googleWeights = ConfigFileConverter.readGoogleWeightsFromJoshuaConfig(trueJoshuaConfigFile);
LinearCorpusGainRecover recover = new LinearCorpusGainRecover(googleWeights);