public LinearBaselineEstimation(LanguageModelFactory lmFactory, TranslationSourceFactory sourceFactory) { this.baselineFeatures = new BaselineFeatures(lmFactory, sourceFactory); } // These weights are a linear regression on the WMT-12 training set
final BufferedReader annotations = new BufferedReader(new FileReader(args[4])); final PrintWriter out = new PrintWriter(args[5]); final BaselineFeatures features = new BaselineFeatures(Services.get(LanguageModelFactory.class), Services.get(TranslationSourceFactory.class)); out.println( "TKS_S,TKS_T,TKLEN_S,LM_S,LM_T,OCC_T,TC_20,TC_1,TOP1G,BOT1G,TOP2G,BOT2G,TOP3G,BOT3G,UNK,PUNC_S,PUNC_T,C");