gui.transact
Class DialServResponseParser

java.lang.Object
  extended by gui.transact.DialServResponseParser

public class DialServResponseParser
extends java.lang.Object

Utility for parsing dialogue server responses.

Author:
GEORGESC

Nested Class Summary
(package private) static class DialServResponseParser.DialServResponse
           
(package private) static class DialServResponseParser.Response
           
 
Field Summary
private static java.util.logging.Logger logger
           
 
Constructor Summary
DialServResponseParser()
           
 
Method Summary
static java.lang.String getActionProcessNbestList(net.sf.regulus.NBestRegResult nbest)
           
(package private) static java.lang.String getGeneralResponse(java.lang.String dialogueServerReply)
          Given the dialogue server reply, get the text response.
(package private) static java.lang.String getSelectedInterpret(java.lang.String dialogueServerReply)
          Given the dialogue server reply, get the selected interpretation
(package private) static DialServResponseParser.Response parseResponse(java.lang.String dialogueServerReply)
           
(package private) static DialServResponseParser.DialServResponse transformResponse(java.lang.String dialogueServerReply, java.util.logging.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger
Constructor Detail

DialServResponseParser

public DialServResponseParser()
Method Detail

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]]