Package joshua.decoder.ff.tm

Examples of joshua.decoder.ff.tm.MonolingualRule


       if(have_lm_model==false){//no LM is used for decoding, so we should set the stateless cost
         //this.feat_scores[0]=100.0/((FeatureFunction)p_l_models.get(0)).getWeight();//TODO
         feat_scores[0]=100;//TODO
       }
      
    return new MonolingualRule(this.defaultLHS, p_french, feat_scores,  0, this.defaultOwner, 0, getOOVRuleID());
  }
View Full Code Here


    for (String score : scores) {
      feature_scores[i++] = Float.parseFloat(score);
    }

    //?????????????? res.estimateRuleCost(p_l_models);//estimate lower-bound, and set statelesscost, this must be called
    return new MonolingualRule(lhs, french, feature_scores, arity);
  }
View Full Code Here

TOP

Related Classes of joshua.decoder.ff.tm.MonolingualRule

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.