summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/phrase/Agree.java
diff options
context:
space:
mode:
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);