Package joshua.discriminative.feature_related.feature_template

Examples of joshua.discriminative.feature_related.feature_template.EdgeBigramFT


      int baselineLMOrder = 5;//TODO??????????????????
      if(useLMFeat==true){ 
        FeatureTemplate ft = new NgramFT(symbolTbl, false, ngramStateID, baselineLMOrder, 1, 2);//TODO: unigram and bi gram
        featTemplates.add(ft);
      }else if(useEdgeNgramOnly){//exclusive with use_lm_feat
        FeatureTemplate ft = new EdgeBigramFT(symbolTbl, ngramStateID, baselineLMOrder, useIntegerString);
        featTemplates.add(ft);
      }   
      System.out.println("templates are: " + featTemplates);
     
      //============= restricted feature set : normally this is not used as the model itself is a restriction
View Full Code Here


     
    if(useLMFeat==true){ 
      FeatureTemplate ft = new NgramFT(symbolTbl, useIntegerString, ngramStateID, baselineLMOrder, startNgramOrder, endNgramOrder);
      featTemplates.add(ft);
    }else if(useEdgeNgramOnly){//exclusive with use_lm_feat
      FeatureTemplate ft = new EdgeBigramFT(symbolTbl, ngramStateID, baselineLMOrder, useIntegerString);
      featTemplates.add(ft);
    }   
    logger.info("templates are: " + featTemplates);
       
   
View Full Code Here

   
    if(use_lm_feat==true){
      FeatureTemplate ft = new NgramFT(p_symbol, false, ngramStateID, baseline_lm_order, 1 ,2);//TODO: unigram and bi gram
      featureTemplates.add(ft);
    }else if(use_edge_ngram_only){//exclusive with use_lm_feat
      FeatureTemplate ft = new EdgeBigramFT(p_symbol, ngramStateID, baseline_lm_order, useIntegerString);
      featureTemplates.add(ft);
    }
   
    if(use_joint_tm_lm_feature){
      //TODO: not implement
View Full Code Here

    int baseline_lm_order = 3;//TODO
    if(useLMFeat==true){
      FeatureTemplate ft = new NgramFT(p_symbol, false, ngramStateID, baseline_lm_order,1,2);//TODO: unigram and bi gram
      featTemplates.add(ft);
    }else if(useEdgeNgramOnly){//exclusive with use_lm_feat
      FeatureTemplate ft = new EdgeBigramFT(p_symbol, ngramStateID, baseline_lm_order, useIntegerString);
      featTemplates.add(ft);
    }   
   
    System.out.println("feature template are " + featTemplates.toString());
   
View Full Code Here

    if(use_lm_feat==true){
      FeatureTemplate ft = new NgramFT(symbolTbl, false, ngramStateID, baseline_lm_order,1,2);//TODO: unigram and bi gram
      l_feat_templates.add(ft);
      l_feat_templates_nobaseline.add(ft);
    }else if(use_edge_ngram_only){//exclusive with use_lm_feat
      FeatureTemplate ft = new EdgeBigramFT(symbolTbl, ngramStateID, baseline_lm_order, useIntegerString);
      l_feat_templates.add(ft);
      l_feat_templates_nobaseline.add(ft);
    }
   
    if(use_joint_tm_lm_feature){
View Full Code Here

TOP

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

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.