gui.transact
Class DialServResponseParser
java.lang.Object
gui.transact.DialServResponseParser
public class DialServResponseParser
- extends java.lang.Object
Utility for parsing dialogue server responses.
- Author:
- GEORGESC
Field Summary |
private static java.util.logging.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
DialServResponseParser
public DialServResponseParser()
getGeneralResponse
static java.lang.String getGeneralResponse(java.lang.String dialogueServerReply)
- Given the dialogue server reply, get the text response.
- Returns:
getSelectedInterpret
static java.lang.String getSelectedInterpret(java.lang.String dialogueServerReply)
- Given the dialogue server reply, get the selected interpretation
- Parameters:
dialogueServerReply
-
- Returns:
transformResponse
static DialServResponseParser.DialServResponse transformResponse(java.lang.String dialogueServerReply,
java.util.logging.Logger logger)
- Parameters:
dialogueServerReply
-
- Returns:
getActionProcessNbestList
public static java.lang.String getActionProcessNbestList(net.sf.regulus.NBestRegResult nbest)
parseResponse
static DialServResponseParser.Response parseResponse(java.lang.String dialogueServerReply)
- Parameters:
dialogueServerReply
-
- Returns:
- Input example : [selected=were there any meetings the last week,action=tts(no),
paraphrase=[were there meetings between Tue Jul 21 2009 and 15:35 on Tue Jul 28 2009,?paraphrase]]