Package joshua.discriminative.feature_related.feature_template

Examples of joshua.discriminative.feature_related.feature_template.TMFT


      String baselineName = "baseline_lzf";//TODO
      FeatureTemplate baselineFeature = new TableBasedBaselineFT(baselineName, baselineScale);
      featTemplates.add(baselineFeature)
     
      if(useTMFeat==true){
        FeatureTemplate ft = new TMFT(symbolTbl, useIntegerString, useRuleIDName);
        featTemplates.add(ft);
      }
       
      int baselineLMOrder = 5;//TODO??????????????????
      if(useLMFeat==true){ 
View Full Code Here


      ){
   
    List<FeatureTemplate> featTemplates =  new ArrayList<FeatureTemplate>()
   
      if(useTMFeat==true){
      FeatureTemplate ft = new TMFT(symbolTbl, useIntegerString, useRuleIDName);
      featTemplates.add(ft);
    }
     
    if(useTMTargetFeat==true){
      FeatureTemplate ft = new TargetTMFT(symbolTbl, useIntegerString);
View Full Code Here

   
    boolean useIntegerString = false;
    boolean useRuleIDName = false;
   
    if(use_tm_feat==true){
      FeatureTemplate ft = new TMFT(p_symbol, useIntegerString, useRuleIDName);
      featureTemplates.add(ft);
    }
   
    if(use_lm_feat==true){
      FeatureTemplate ft = new NgramFT(p_symbol, false, ngramStateID, baseline_lm_order, 1 ,2);//TODO: unigram and bi gram
View Full Code Here

   
    boolean useIntegerString = false;
    boolean useRuleIDName = false;
   
    if(useTMFeat==true){
      FeatureTemplate ft = new TMFT(p_symbol, useIntegerString, useRuleIDName);
      featTemplates.add(ft);
    }
   
    int baseline_lm_order = 3;//TODO
    if(useLMFeat==true){
View Full Code Here

   
    boolean useIntegerString = false;
    boolean useRuleIDName = false;
   
    if(use_tm_feat==true){
      FeatureTemplate ft = new TMFT(symbolTbl, useIntegerString, useRuleIDName);
      l_feat_templates.add(ft);
      l_feat_templates_nobaseline.add(ft);
    }
   
  
View Full Code Here

        this.microRuleFeatureTemplate = new MicroRuleFT(MRConfig.useRuleIDName, MRConfig.startTargetNgramOrder, MRConfig.endTargetNgramOrder, MRConfig.wordMapFile);
        featTemplates.add(microRuleFeatureTemplate);
      }
     
      if(MRConfig.useTMFeat){
        FeatureTemplate ft = new TMFT(symbolTbl, useIntegerString, MRConfig.useRuleIDName);       
        featTemplates.add(ft);
      }
     
      if(MRConfig.useTMTargetFeat){     
        FeatureTemplate ft = new TargetTMFT(symbolTbl, useIntegerString);
View Full Code Here

TOP

Related Classes of joshua.discriminative.feature_related.feature_template.TMFT

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.