mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 21:39:32 -06:00
linearization in the Java binding
This commit is contained in:
@@ -20,8 +20,10 @@ public class Test {
|
||||
System.out.println(entry.getKey()+" "+entry.getValue()+" "+entry.getValue().getName());
|
||||
}
|
||||
|
||||
for (ExprProb ep : gr.getLanguages().get("ParseEng").parse("Phr", "test")) {
|
||||
Concr eng = gr.getLanguages().get("ParseEng");
|
||||
for (ExprProb ep : eng.parse("Phr", "where are you")) {
|
||||
System.out.println("["+ep.getProb()+"] "+ep.getExpr());
|
||||
System.out.println(eng.linearize(ep.getExpr()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user