summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/phrase/Agree.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
commitd125974b3980ac8b5831dd0ad80073caf4492a4a (patch)
tree26995b1b08463be5d9686e4e4d58750657f4a0c3 /gi/posterior-regularisation/prjava/src/phrase/Agree.java
parentf281f2deac864d57a0eb566ae1f1c203ee5a8623 (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/Agree.java')
-rw-r--r--gi/posterior-regularisation/prjava/src/phrase/Agree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/posterior-regularisation/prjava/src/phrase/Agree.java b/gi/posterior-regularisation/prjava/src/phrase/Agree.java
index d61e6eef..f3dc5c36 100644
--- a/gi/posterior-regularisation/prjava/src/phrase/Agree.java
+++ b/gi/posterior-regularisation/prjava/src/phrase/Agree.java
@@ -112,7 +112,7 @@ public class Agree {
bdist += edge.getCount() * Math.log(z);
arr.F.l1normalize(p);
- int count = edge.getCount();
+ double count = edge.getCount();
//increment expected count
TIntArrayList phraseToks = edge.getPhrase();
TIntArrayList contextToks = edge.getContext();