Examples of BuildinSymbol


Examples of joshua.corpus.vocab.BuildinSymbol

   
    String f_dev_hg_prefix=args[0].trim();
    String f_dev_items = f_dev_hg_prefix +".items";
    String f_dev_rules = f_dev_hg_prefix +".rules";
   
    SymbolTable p_symbol = new BuildinSymbol(null);
    int baseline_lm_feat_id =0;
    int num_sents =5;
   
    double scale=1.0;
    DefaultSemiringParser ds = new HypLenSquareExpectation(1,0,scale);
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

   
    //????????????????????????????????????????????????????
    int baseline_lm_feat_id = 0;
    //??????????????????????????????????????
   
    SymbolTable p_symbolTable = new BuildinSymbol(null);
   
    KBestExtractor kbestExtractor =null;
    int topN=300;//TODO
    boolean extract_unique_nbest = true;//TODO
    boolean do_ngram_clip_nbest = true; //TODO
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

        devRefs[i-3]= args[i].trim();
        System.out.println("Use ref file " + devRefs[i-3]);
      }
    }
   
    SymbolTable symbolTbl = new BuildinSymbol(null);
   
    int numSentInDevSet = FileUtilityOld.numberLinesInFile(sourceTrainingFile);
   
   
    HGMinRiskDAMert trainer =  new HGMinRiskDAMert(joshuaConfigFile,numSentInDevSet, devRefs, hypFilePrefix, symbolTbl, sourceTrainingFile);
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

    l_default_nonterminals.add(this.p_symbolTable.addNonterminal(default_non_terminal));
  }
 
 
  private void initSymbolTbl() throws IOException {
    this.p_symbolTable = new BuildinSymbol(null);   
  }
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

    String onebestFile=args[3].trim();//output
    int topN = new Integer(args[4].trim());
    double scalingFactor = new Double(args[5].trim());
 
    int ngramStateID = 0;
    SymbolTable symbolTbl = new BuildinSymbol(null);;
   
    NbestCrunching cruncher = new NbestCrunching(symbolTbl, scalingFactor, topN);
    NbestMinRiskReranker mbrReranker = new NbestMinRiskReranker(false, 1.0);
 
    BufferedWriter onebestWriter =  FileUtilityOld.getWriteFileStream(onebestFile)
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

    String onebestFile=args[3].trim();//output
    int topN = new Integer(args[4].trim());
    double insideOutsideScalingFactor = new Double(args[5].trim());
 
    int ngramStateID = 0;
    SymbolTable symbolTbl = new BuildinSymbol(null);
   
    NbestCrunching cruncher = new NbestCrunching(symbolTbl, insideOutsideScalingFactor, topN);   
 
    BufferedWriter onebestWriter =  FileUtilityOld.getWriteFileStream(onebestFile)
   
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

    //String f_1best=args[3].trim();//output
    int topN = new Integer(args[4].trim());
    double inside_outside_scaling_factor = new Double(args[5].trim());
 
    int baseline_lm_feat_id = 0;
    SymbolTable p_symbol = new BuildinSymbol(null);
   
    EstimateEntropyGapOnNbest cruncher = new EstimateEntropyGapOnNbest(p_symbol, inside_outside_scaling_factor, topN);   
 
    //BufferedWriter t_writer_1best =  FileUtilityOld.getWriteFileStream(f_1best); 
   
View Full Code Here

Examples of joshua.corpus.vocab.BuildinSymbol

      p_lm = new LMGrammarSRILM((SrilmSymbol)p_symbolTable, g_lm_order, lm_file);
     
    } else {
      //p_lm = new LMGrammar_JAVA(g_lm_order, lm_file, use_left_euqivalent_state);
      //big bug: should load the consistent symbol files
      p_symbolTable = new BuildinSymbol(remote_symbol_tbl);
      p_lm = new LMGrammarJAVA((BuildinSymbol)p_symbolTable, g_lm_order, lm_file, use_left_euqivalent_state, use_right_euqivalent_state);
    }
  }
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.