|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hops.ext.parserinterpreter
public class parserinterpreter
calls the parser implemented by TALP It is the bridge between DM and NLA
| Constructor Summary | |
|---|---|
parserinterpreter()
Creates a new instance of generic parser interpreter |
|
parserinterpreter(java.lang.String host,
java.lang.String port,
java.lang.String path,
java.lang.String method,
java.lang.String grammars_file)
Creates a new instance of talp parser |
|
| Method Summary | |
|---|---|
RecognizedUserInput |
DoAnalyzerCall(java.util.ArrayList expectedAttributes,
java.lang.String userinput,
java.lang.String lang)
Gets XML page from parser and extracts the user moves |
static utterance |
GetNextUsrUt(java.lang.String sysmessage,
PlanSet plans)
gets an utterance throw the console |
RecognizedUserInput |
GetNextUsrUtParser(java.util.ArrayList sysmessage,
java.util.ArrayList expectedAttributes,
java.lang.String lang)
Gets the user sentence, calls the parser and generates a RecognizedUserInput |
utterance |
Interpret(PlanSet plan,
RecognizedUserInput userInput,
ResponseData lastRD,
java.lang.String serviceId)
Converts the RecognizedUserInput to a utterance object understandable by the DM. |
static void |
Interpret(PlanSet plan,
utterance actualut,
ResponseData lastRD,
java.lang.String serviceId)
dummy interpret, shows the actualut by the console |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public parserinterpreter(java.lang.String host,
java.lang.String port,
java.lang.String path,
java.lang.String method,
java.lang.String grammars_file)
public parserinterpreter()
| Method Detail |
|---|
public utterance Interpret(PlanSet plan,
RecognizedUserInput userInput,
ResponseData lastRD,
java.lang.String serviceId)
plan - the plans of the DMuserInput - the parser resultlastRD - the last ResponseData generated by the system
public RecognizedUserInput GetNextUsrUtParser(java.util.ArrayList sysmessage,
java.util.ArrayList expectedAttributes,
java.lang.String lang)
sysmessage - the system message shown to the user
public RecognizedUserInput DoAnalyzerCall(java.util.ArrayList expectedAttributes,
java.lang.String userinput,
java.lang.String lang)
expectedAttributes - expected attribute from the useruserinput - XML page from parser
public static void Interpret(PlanSet plan,
utterance actualut,
ResponseData lastRD,
java.lang.String serviceId)
plan - the DM plansactualut - the console utterance gotlastRD - the last system responsedata
public static utterance GetNextUsrUt(java.lang.String sysmessage,
PlanSet plans)
sysmessage - the system supposed message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||