Package joshua.decoder.ff.tm.hiero

Examples of joshua.decoder.ff.tm.hiero.DiskHyperGraphFormatReader.initialize()


       
    SymbolTable symbolTable = new BuildinSymbol(null);
    GrammarReader<BilingualRule> ruleReader = new DiskHyperGraphFormatReader(rulesFile, symbolTable);
    Map<String,Integer> rulesIDTable = new HashMap<String,Integer>();
   
    ruleReader.initialize();
    for (Rule rule : ruleReader) {       
      rulesIDTable.put(rule.toStringWithoutFeatScores(symbolTable), rule.getRuleID());
    }     
    ruleReader.close();     
 
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.