Package joshua.decoder.ff

Examples of joshua.decoder.ff.SourceLatticeArcLogPFF


     
      if (line.indexOf("=") == -1) { //ignore lines with "="
        String[] fds = line.split("\\s+");
        if (0 == fds[0].compareTo("latticecost") && fds.length == 2) {
          double weight = Double.parseDouble(fds[1].trim());
          l_models.add(new SourceLatticeArcLogPFF(l_models.size(), weight));
          if (logger.isLoggable(Level.FINEST)) logger.finest(
            String.format("Line: %s\nAdd Source lattice cost, weight: %.3f", weight));
        } else if (0 == fds[0].compareTo("phrasemodel") && fds.length == 4) { // phrasemodel owner column(0-indexed) weight
          int owner = psymbolTable.addTerminal(fds[1]);
          int column = (new Integer(fds[2].trim())).intValue();
View Full Code Here

TOP

Related Classes of joshua.decoder.ff.SourceLatticeArcLogPFF

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.