added exhaustive generation in the Java binding

This commit is contained in:
kr.angelov
2013-09-06 07:21:38 +00:00
parent 14f8b96b56
commit 5a4454aa8f
4 changed files with 62 additions and 1 deletions

View File

@@ -19,6 +19,14 @@ public class Test {
for (Map.Entry<String,Concr> entry : gr.getLanguages().entrySet()) {
System.out.println(entry.getKey()+" "+entry.getValue()+" "+entry.getValue().getName());
}
int count = 10;
for (ExprProb ep : gr.generateAll("Phrase")) {
System.out.println(ep.getExpr());
if (count-- <= 0)
break;
}
Concr eng = gr.getLanguages().get("PhrasebookEng");
Concr ger = gr.getLanguages().get("PhrasebookGer");