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 --- .../prjava/src/phrase/PhraseCluster.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gi/posterior-regularisation/prjava/src/phrase/PhraseCluster.java') diff --git a/gi/posterior-regularisation/prjava/src/phrase/PhraseCluster.java b/gi/posterior-regularisation/prjava/src/phrase/PhraseCluster.java index e7e4af32..560100d4 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/PhraseCluster.java +++ b/gi/posterior-regularisation/prjava/src/phrase/PhraseCluster.java @@ -109,7 +109,7 @@ public class PhraseCluster { loglikelihood += edge.getCount() * Math.log(z); arr.F.l1normalize(p); - int count = edge.getCount(); + double count = edge.getCount(); //increment expected count TIntArrayList context = edge.getContext(); for(int tag=0;tag