Package joshua.decoder

Examples of joshua.decoder.JoshuaDecoder


  public static void main(String[] args) {
    if (args.length < 3) {
      System.err.println(USAGE);
      System.exit(1);
    }
    decoder = new JoshuaDecoder(args[0]);
    JFrame mainFrame = new JFrame("Joshua Decoder / Hypergraph Visualizer");
    mainFrame.setLayout(new BorderLayout());
    sentenceList = new JList(new DefaultListModel());
    mainFrame.getContentPane().add(new JScrollPane(sentenceList), BorderLayout.CENTER);
    JButton decodeButton = new JButton("Decode");
View Full Code Here


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

TOP

Related Classes of joshua.decoder.JoshuaDecoder

Copyright © 2018 www.massapicom. 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.