|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| IntermediateOptimizer (int in_j, Semaphore in_blocker, Vector< String > in_threadOutput, double[] in_initialLambda, double[] in_finalLambda, int[][] in_best1Cand_suffStats, double[] in_finalScore, int[] in_candCount, double[][][] in_featVal_array, ConcurrentHashMap< Integer, int[]>[] in_suffStats_array) | |
| void | run () |
Static Public Member Functions | |
| static void | set_MERTparams (int in_numSentences, int in_numDocuments, int[] in_docOfSentence, int[] in_docSubsetInfo, int in_numParams, double[] in_normalizationOptions, boolean[] in_isOptimizable, double[] in_minThValue, double[] in_maxThValue, boolean in_oneModificationPerIteration, EvaluationMetric in_evalMetric, String in_tmpDirPrefix, int in_verbosity) |
Private Member Functions | |
| void | set_thresholdsForParam (TreeMap< Double, TreeMap< Integer, int[]>> thresholdsAll, int c, double[] currLambda, TreeSet< Integer >[] indicesOfInterest) |
| double[] | line_opt (TreeMap< Double, TreeMap< Integer, int[]>> thresholdsAll, int[] indexOfCurrBest, int c, double[] lambda) |
| void | set_suffStats_array (TreeSet< Integer >[] indicesOfInterest) |
| double | L_norm (double[] A, double pow) |
| int[] | initial_indexOfCurrBest (double[] temp_lambda, TreeSet< Integer >[] indicesOfInterest) |
| double[] | bestParamToChange (TreeMap< Double, TreeMap< Integer, int[]>>[] thresholdsAll, int lastChanged_c, double[] currLambda) |
| void | normalizeLambda (double[] origLambda) |
| void | real_run () |
| void | println (String str, int priority) |
| void | print (String str, int priority) |
| void | println (String str) |
| void | print (String str) |
| String | lambdaToString (double[] lambdaA) |
Private Attributes | |
| int | j |
| Semaphore | blocker |
| Vector< String > | threadOutput |
| String | strToPrint |
| double[] | initialLambda |
| double[] | finalLambda |
| int[][] | best1Cand_suffStats |
| double[] | finalScore |
| int[] | candCount |
| double[][][] | featVal_array |
| ConcurrentHashMap< Integer, int[]>[] | suffStats_array |
Static Private Attributes | |
| static final DecimalFormat | f4 = new DecimalFormat("###0.0000") |
| static final double | NegInf = (-1.0 / 0.0) |
| static final double | PosInf = (+1.0 / 0.0) |
| static int | numSentences |
| static int | numDocuments |
| static int[] | docOfSentence |
| static int | docSubset_firstRank |
| static int | docSubset_lastRank |
| static boolean | optimizeSubset |
| static int | numParams |
| static double[] | normalizationOptions |
| static boolean[] | isOptimizable |
| static double[] | minThValue |
| static double[] | maxThValue |
| static boolean | oneModificationPerIteration |
| static EvaluationMetric | evalMetric |
| static String | metricName |
| static String | metricName_display |
| static int | suffStatsCount |
| static String | tmpDirPrefix |
| static int | verbosity |
| joshua.zmert.IntermediateOptimizer.IntermediateOptimizer | ( | int | in_j, |
| Semaphore | in_blocker, | ||
| Vector< String > | in_threadOutput, | ||
| double[] | in_initialLambda, | ||
| double[] | in_finalLambda, | ||
| int | in_best1Cand_suffStats[][], | ||
| double[] | in_finalScore, | ||
| int[] | in_candCount, | ||
| double | in_featVal_array[][][], | ||
| ConcurrentHashMap< Integer, int[]>[] | in_suffStats_array | ||
| ) |
| double [] joshua.zmert.IntermediateOptimizer.bestParamToChange | ( | TreeMap< Double, TreeMap< Integer, int[]>>[] | thresholdsAll, |
| int | lastChanged_c, | ||
| double[] | currLambda | ||
| ) | [private] |
| int [] joshua.zmert.IntermediateOptimizer.initial_indexOfCurrBest | ( | double[] | temp_lambda, |
| TreeSet< Integer >[] | indicesOfInterest | ||
| ) | [private] |
| double joshua.zmert.IntermediateOptimizer.L_norm | ( | double[] | A, |
| double | pow | ||
| ) | [private] |
| String joshua.zmert.IntermediateOptimizer.lambdaToString | ( | double[] | lambdaA | ) | [private] |
| double [] joshua.zmert.IntermediateOptimizer.line_opt | ( | TreeMap< Double, TreeMap< Integer, int[]>> | thresholdsAll, |
| int[] | indexOfCurrBest, | ||
| int | c, | ||
| double[] | lambda | ||
| ) | [private] |
| void joshua.zmert.IntermediateOptimizer.normalizeLambda | ( | double[] | origLambda | ) | [private] |
| void joshua.zmert.IntermediateOptimizer.print | ( | String | str, |
| int | priority | ||
| ) | [private] |
| void joshua.zmert.IntermediateOptimizer.print | ( | String | str | ) | [private] |
| void joshua.zmert.IntermediateOptimizer.println | ( | String | str, |
| int | priority | ||
| ) | [private] |
| void joshua.zmert.IntermediateOptimizer.println | ( | String | str | ) | [private] |
| void joshua.zmert.IntermediateOptimizer.real_run | ( | ) | [private] |
| static void joshua.zmert.IntermediateOptimizer.set_MERTparams | ( | int | in_numSentences, |
| int | in_numDocuments, | ||
| int[] | in_docOfSentence, | ||
| int[] | in_docSubsetInfo, | ||
| int | in_numParams, | ||
| double[] | in_normalizationOptions, | ||
| boolean[] | in_isOptimizable, | ||
| double[] | in_minThValue, | ||
| double[] | in_maxThValue, | ||
| boolean | in_oneModificationPerIteration, | ||
| EvaluationMetric | in_evalMetric, | ||
| String | in_tmpDirPrefix, | ||
| int | in_verbosity | ||
| ) | [static] |
| void joshua.zmert.IntermediateOptimizer.set_suffStats_array | ( | TreeSet< Integer >[] | indicesOfInterest | ) | [private] |
| void joshua.zmert.IntermediateOptimizer.set_thresholdsForParam | ( | TreeMap< Double, TreeMap< Integer, int[]>> | thresholdsAll, |
| int | c, | ||
| double[] | currLambda, | ||
| TreeSet< Integer >[] | indicesOfInterest | ||
| ) | [private] |
int [][] joshua.zmert.IntermediateOptimizer.best1Cand_suffStats [private] |
Semaphore joshua.zmert.IntermediateOptimizer.blocker [private] |
int [] joshua.zmert.IntermediateOptimizer.candCount [private] |
int [] joshua.zmert.IntermediateOptimizer.docOfSentence [static, private] |
int joshua.zmert.IntermediateOptimizer.docSubset_firstRank [static, private] |
int joshua.zmert.IntermediateOptimizer.docSubset_lastRank [static, private] |
EvaluationMetric joshua.zmert.IntermediateOptimizer.evalMetric [static, private] |
final DecimalFormat joshua.zmert.IntermediateOptimizer.f4 = new DecimalFormat("###0.0000") [static, private] |
double [][][] joshua.zmert.IntermediateOptimizer.featVal_array [private] |
double [] joshua.zmert.IntermediateOptimizer.finalLambda [private] |
double [] joshua.zmert.IntermediateOptimizer.finalScore [private] |
double [] joshua.zmert.IntermediateOptimizer.initialLambda [private] |
boolean [] joshua.zmert.IntermediateOptimizer.isOptimizable [static, private] |
int joshua.zmert.IntermediateOptimizer.j [private] |
double [] joshua.zmert.IntermediateOptimizer.maxThValue [static, private] |
String joshua.zmert.IntermediateOptimizer.metricName [static, private] |
String joshua.zmert.IntermediateOptimizer.metricName_display [static, private] |
double [] joshua.zmert.IntermediateOptimizer.minThValue [static, private] |
final double joshua.zmert.IntermediateOptimizer.NegInf = (-1.0 / 0.0) [static, private] |
double [] joshua.zmert.IntermediateOptimizer.normalizationOptions [static, private] |
int joshua.zmert.IntermediateOptimizer.numDocuments [static, private] |
int joshua.zmert.IntermediateOptimizer.numParams [static, private] |
int joshua.zmert.IntermediateOptimizer.numSentences [static, private] |
boolean joshua.zmert.IntermediateOptimizer.oneModificationPerIteration [static, private] |
boolean joshua.zmert.IntermediateOptimizer.optimizeSubset [static, private] |
final double joshua.zmert.IntermediateOptimizer.PosInf = (+1.0 / 0.0) [static, private] |
String joshua.zmert.IntermediateOptimizer.strToPrint [private] |
ConcurrentHashMap<Integer, int[]> [] joshua.zmert.IntermediateOptimizer.suffStats_array [private] |
int joshua.zmert.IntermediateOptimizer.suffStatsCount [static, private] |
Vector<String> joshua.zmert.IntermediateOptimizer.threadOutput [private] |
String joshua.zmert.IntermediateOptimizer.tmpDirPrefix [static, private] |
int joshua.zmert.IntermediateOptimizer.verbosity [static, private] |