Package joshua.decoder

Examples of joshua.decoder.JoshuaDecoder.cleanUp()


    //============== 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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.