@Override
protected ExpectationSemiringPM<LogSemiring, ScalarPM, ScalarPM, ScalarPM,ScalarBO>
getEdgeXWeight(HyperEdge dt, HGNode parent_item) {
//== p
double logProb = scale * dt.getTransitionLogP(false);
LogSemiring p = new LogSemiring(logProb);
//== r
double val = 0;//real
if(dt.getRule()!=null){
val = dt.getRule().getEnglish().length-dt.getRule().getArity();//length; real semiring