Examples of print_info()


Examples of joshua.discriminative.syntax_reorder.HashtableBasedHieroGrammarScorer.Rule.print_info()

      //distribute the count, normalization
      for(int k=0; k < local_results.size(); k++){
        Rule rl = (Rule)local_results.get(k);
        for(int f=0; f<rl.feat_scores.length; f++)
          rl.feat_scores[f] /= local_results.size();
        rl.print_info(symbolTable);
      }
      l_phrases_and_rules.addAll(local_results);
      //System.out.println("local size " + local_results.size() + " all size " + l_phrases_and_rules.size());
    }
    System.out.println("num of rules and phrases is "  + l_phrases_and_rules.size());
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.