Examples of multiSemiring()


Examples of joshua.discriminative.semiring_parsingv2.pmodule.ScalarPM.multiSemiring()

    double logProb = scale * dt.getTransitionLogP(false);
    LogSemiring p = new LogSemiring(logProb);
   
    double val = logProb;
    ScalarPM r =  new ScalarPM( SignedValue.createSignedValueFromRealNumber(val) );
    r.multiSemiring(p);
   
    res = new ExpectationSemiring<LogSemiring,ScalarPM>(p, r);
   
    return res;
  }
View Full Code Here

Examples of joshua.discriminative.semiring_parsingv2.pmodule.ScalarPM.multiSemiring()

   
    //s = p s
    s.multiSemiring(p);
   
    //t= p t
    t.multiSemiring(p);
   
    return new ExpectationSemiringPM<LogSemiring, ScalarPM, ScalarPM, ScalarPM, ScalarBO>(s, t, pBilinearOperator);
  }
 
 
View Full Code Here

Examples of joshua.discriminative.semiring_parsingv2.pmodule.ScalarPM.multiSemiring()

      val = dt.getRule().getEnglish().length-dt.getRule().getArity();//length; real semiring
    }   
    ScalarPM r =  new ScalarPM( SignedValue.createSignedValueFromRealNumber(val) );
   
    // r= p r
    r.multiSemiring(p);
   
    return new ExpectationSemiring<LogSemiring, ScalarPM>(p,r);
  }
 
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.