Package joshua.discriminative.training.oracle.RefineHG

Examples of joshua.discriminative.training.oracle.RefineHG.RefinedNode


  private double getRiskTransitionCost(HyperEdge originalEdge, List<HGNode> antVirtualItems, DPStateOracle dps){//note: transition_cost is already linearly interpolated
   
    double riskTransitionCost = dps.bestDerivationLogP;
    if(antVirtualItems!=null
      for(HGNode ant_it :antVirtualItems ){
        RefinedNode it2 = (RefinedNode) ant_it;//TODO
        riskTransitionCost -= ((DPStateOracle)it2.dpState).bestDerivationLogP;
      }     
    return -riskTransitionCost;
  }
View Full Code Here

TOP

Related Classes of joshua.discriminative.training.oracle.RefineHG.RefinedNode

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.