From 58681ee5816d13c04002ca8aebe23c2768da4e5b Mon Sep 17 00:00:00 2001 From: desaicwtf Date: Fri, 23 Jul 2010 17:23:13 +0000 Subject: git-svn-id: https://ws10smt.googlecode.com/svn/trunk@381 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/posterior-regularisation/prjava/src/phrase/Trainer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gi/posterior-regularisation/prjava/src/phrase/Trainer.java b/gi/posterior-regularisation/prjava/src/phrase/Trainer.java index cea6a20a..f205ce67 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/Trainer.java +++ b/gi/posterior-regularisation/prjava/src/phrase/Trainer.java @@ -36,7 +36,7 @@ public class Trainer parser.accepts("convergence-threshold").withRequiredArg().ofType(Double.class).defaultsTo(1e-6); parser.accepts("variational-bayes"); parser.accepts("alpha-emit").withRequiredArg().ofType(Double.class).defaultsTo(0.1); - parser.accepts("alpha-pi").withRequiredArg().ofType(Double.class).defaultsTo(0.01); + parser.accepts("alpha-pi").withRequiredArg().ofType(Double.class).defaultsTo(0.0001); parser.accepts("agree-direction"); parser.accepts("agree-language"); parser.accepts("no-parameter-cache"); @@ -120,6 +120,8 @@ public class Trainer if (vb) { //cluster.initialiseVB(alphaEmit, alphaPi); vbModel=new VB(tags,corpus); + vbModel.alpha=alphaPi; + vbModel.lambda=alphaEmit; } if (options.has("no-parameter-cache")) cluster.cacheLambda = false; -- cgit v1.2.3