summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/phrase/C2F.java
diff options
context:
space:
mode:
authortrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 19:35:20 +0000
committertrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 19:35:20 +0000
commit0b566e7d99e1fa536bf918bd16069c8e93e2caa9 (patch)
tree86f94b284f6508c164346a8e01d782805df12eb5 /gi/posterior-regularisation/prjava/src/phrase/C2F.java
parent68b05cdc63d49dbe26bfb2a99a2dd680ab70c209 (diff)
Allow fractional counts.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@337 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/posterior-regularisation/prjava/src/phrase/C2F.java')
-rw-r--r--gi/posterior-regularisation/prjava/src/phrase/C2F.java2
1 files changed, 1 insertions, 1 deletions
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<K;tag++){