Package joshua.discriminative.semiring_parsing

Examples of joshua.discriminative.semiring_parsing.SignedValue


    if(p_atomic_semiring.ATOMIC_SEMIRING==AtomicSemiring.LOG_SEMIRING){
      double logProbP = - scale * computeTransitionCost(parent_item, dt, pFeatFunctions);//from p
      double valQ = -  scale * computeTransitionCost(parent_item, dt, qFeatFunctions);//from q;//s(x,y); to compute E(s(x,y)); real semiring
     
      //double factor1 = Math.exp(logProbP)*valQ; //real semiring
      SignedValue factor1 =  SignedValue.multi(
          logProbP,
          SignedValue.createSignedValue(valQ)
      );
      res = new ExpectationSemiring(logProbP, factor1);
    }else{
View Full Code Here

TOP

Related Classes of joshua.discriminative.semiring_parsing.SignedValue

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.