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-21 22:48:02 +0000
committertrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-21 22:48:02 +0000
commite5f89e61768c7a8cc3ac60976d14314de60862f4 (patch)
tree9d2e932aeee368daf7de0e5dcd38f5cf1a5d5418 /gi/posterior-regularisation/prjava/src/phrase/Agree.java
parent9e3c1c2e7ee29d8967dab8e0d4d321fdccd5624b (diff)
Posterior output
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@366 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.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/gi/posterior-regularisation/prjava/src/phrase/Agree.java b/gi/posterior-regularisation/prjava/src/phrase/Agree.java
index f3dc5c36..8f7b499e 100644
--- a/gi/posterior-regularisation/prjava/src/phrase/Agree.java
+++ b/gi/posterior-regularisation/prjava/src/phrase/Agree.java
@@ -182,7 +182,12 @@ public class Agree {
public void displayPosterior(PrintStream ps)
{
- for (Edge edge : c.getEdges())
+ displayPosterior(ps, c.getEdges());
+ }
+
+ public void displayPosterior(PrintStream ps, List<Edge> test)
+ {
+ for (Edge edge : test)
{
double probs[] = posterior(edge);
arr.F.l1normalize(probs);