From 0b566e7d99e1fa536bf918bd16069c8e93e2caa9 Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Tue, 20 Jul 2010 19:35:20 +0000 Subject: Allow fractional counts. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@337 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/posterior-regularisation/prjava/src/phrase/C2F.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gi/posterior-regularisation/prjava/src/phrase/C2F.java') diff --git a/gi/posterior-regularisation/prjava/src/phrase/C2F.java b/gi/posterior-regularisation/prjava/src/phrase/C2F.java index 31fd4fda..e8783950 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/C2F.java +++ b/gi/posterior-regularisation/prjava/src/phrase/C2F.java @@ -118,7 +118,7 @@ public class C2F { loglikelihood += edge.getCount() * Math.log(z); arr.F.l1normalize(p); - int count = edge.getCount(); + double count = edge.getCount(); //increment expected count TIntArrayList phrase= edge.getPhrase(); for(int tag=0;tag