Package joshua.decoder.ff.lm

Examples of joshua.decoder.ff.lm.ArpaFile


   * (the context is defined by where you are in the tree).
   */
  private final Map<Integer,Float> backoffs;
 
  public TrieLM(SymbolTable vocab, String file) throws FileNotFoundException {
    this(new ArpaFile(file,vocab));
  }
View Full Code Here


  }

  public static void main(String[] args) throws IOException {
   
    logger.info("Constructing ARPA file");
    ArpaFile arpaFile = new ArpaFile(args[0]);
   
    logger.info("Getting symbol table");
    SymbolTable vocab = arpaFile.getVocab();
   
    logger.info("Constructing TrieLM");
    TrieLM lm = new TrieLM(arpaFile);
   
    int n = Integer.valueOf(args[2]);
View Full Code Here

TOP

Related Classes of joshua.decoder.ff.lm.ArpaFile

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.