mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 21:39:32 -06:00
parsing from the Java binding
This commit is contained in:
@@ -19,5 +19,9 @@ public class Test {
|
||||
for (Map.Entry<String,Concr> entry : gr.getLanguages().entrySet()) {
|
||||
System.out.println(entry.getKey()+" "+entry.getValue()+" "+entry.getValue().getName());
|
||||
}
|
||||
|
||||
for (ExprProb ep : gr.getLanguages().get("ParseEng").parse("Phr", "test")) {
|
||||
System.out.println("["+ep.getProb()+"] "+ep.getExpr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user