From 5df85cee3a3f806a315e28b0dd19dce0f87efa79 Mon Sep 17 00:00:00 2001 From: Birte Carlmeyer Date: Mon, 12 Jan 2015 09:27:55 +0100 Subject: [PATCH] Added dialog data types in proto/sandbox/rst/dialog --- proto/sandbox/rst/dialog/DialogAct.proto | 100 +++++++++++++++++++++ .../sandbox/rst/dialog/DialogManagerCommand.proto | 40 +++++++++ proto/sandbox/rst/dialog/IncrementalUnit.proto | 70 +++++++++++++++ .../rst/dialog/InteractionPatternInfo.proto | 24 +++++ 4 files changed, 234 insertions(+) create mode 100644 proto/sandbox/rst/dialog/DialogAct.proto create mode 100644 proto/sandbox/rst/dialog/DialogManagerCommand.proto create mode 100644 proto/sandbox/rst/dialog/IncrementalUnit.proto create mode 100644 proto/sandbox/rst/dialog/InteractionPatternInfo.proto diff --git a/proto/sandbox/rst/dialog/DialogAct.proto b/proto/sandbox/rst/dialog/DialogAct.proto new file mode 100644 index 0000000..ac76ef7 --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogAct.proto @@ -0,0 +1,100 @@ +package rst.dialog; + +option java_outer_classname = "DialogActType"; + +import "rst/dialog/IncrementalUnit.proto"; +import "rst/xml/XOP.proto"; + +/** + * A description of a dialog act incremental unit consisting an xml speech + * hypothesis as payload. + * + * @author Birte Carlmeyer + */ +message DialogAct { + + /** + * Possible kinds of dialog act types. + */ + enum Type { + + /** + * Conversation opening. + */ + GREET = 0; + + /* + * Affirmative answer. + */ + ACCEPT = 1; + + /* + * Negative answer. + */ + REJECT = 2; + + /* + * Confirmation. + */ + CONFIRM = 3; + + /* + * Negation. + */ + NEGATE = 4; + + /* + * Speaker wants an information from addressee. + */ + INFO_REQUEST = 5; + + /* + * Speaker offers to perform an action. + */ + ACTION_REQUEST = 6; + + /* + * A statement. + */ + STATEMENT = 7; + + /* + * An answere (not a yes/no answer). + */ + ANSWERE = 8; + + /* + * Conversation closing. + */ + GOODBYE = 9; + + /* + * The current dialog act doesn't match to any of the previous types. + */ + OTHER = 10; + + } + + + /** + * The type of the current dialog act. + */ + required Type type = 1; + + /** + * The basic information of the dialog act IU. + */ + required IncrementalUnit iu = 2; + + + /** + * The dialog act has an XML string (UTF-8 encoded) speech hypothesis as + * payload (until we have a special speech hypothesis type). + * + * Has to be valid XML. + */ + required string speech_hypothesis = 3; + + + +} diff --git a/proto/sandbox/rst/dialog/DialogManagerCommand.proto b/proto/sandbox/rst/dialog/DialogManagerCommand.proto new file mode 100644 index 0000000..839cd09 --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogManagerCommand.proto @@ -0,0 +1,40 @@ +package rst.dialog; + +option java_outer_classname = "DialogManagerCommandType"; + +/** + * A description of a command for a dialog manager. + * + * @author Birte Carlmeyer + */ +message DialogManagerCommand { + + /** + * Possible kinds of commands. + */ + enum Command { + + /** + * Reset the whole interaction. + */ + RESET_INTERACTION = 0; + + /* + * Reset a single interaction pattern. + */ + RESET_PATTERN = 1; + + } + + /** + * The chosen command for the dialog manager + */ + required Command command = 1; + + /** + * For the command @ref .RESET_PATTERN this is a required information, + * which is linked to an interaction pattern. + */ + optional string pattern_name = 2; + +} diff --git a/proto/sandbox/rst/dialog/IncrementalUnit.proto b/proto/sandbox/rst/dialog/IncrementalUnit.proto new file mode 100644 index 0000000..97400b0 --- /dev/null +++ b/proto/sandbox/rst/dialog/IncrementalUnit.proto @@ -0,0 +1,70 @@ +package rst.dialog; + +option java_outer_classname = "IncrementalUnitType"; + +import "rst/timing/Interval.proto"; + +/** + * A description of the basic information of an incremental unit (IU) of the + * IU-model of incremental dialogue processing. + * + * @see http://wwwhomes.uni-bielefeld.de/dschlangen/inpro/abstractModel.html + * "A General, Abstract Model of Incremental Dialogue Processing" + * + * @author Birte Carlmeyer + */ +message IncrementalUnit { + + /** + * The incremental unit can be in different states. + */ + enum EditType { + + /** + * Indicating a new incremental unit. + */ + ADD = 0; + + /** + * Replaced the last incremental unit. + */ + UPDATED = 1; + + /** + * A previously added unit has been revoked. + */ + REVOKE = 2; + + /** + * The incremental unit has been finally committed and will not be + * changed any more. + */ + COMMIT = 3; + + } + + /** + * Start and end time of the incremental unit. + */ + optional timing.Interval timestamps = 2; + + /** + * A unique id for the incremental unit. + */ + required string id = 3; + + /** + * Optional id list of IU which have a same-level link. + * Same-level links (sll) connect IUs, which are produced by the same module + * and reflect their temporal order. + */ + repeated string sll_id = 4; + + /** + * Optional id list of IU which have a grounded-in link. + * Grounded-in links (gil) represent on which IUs they depend, thus + * representing the possibility to build a hierarchical structure. + */ + repeated string gil_id = 5; + +} diff --git a/proto/sandbox/rst/dialog/InteractionPatternInfo.proto b/proto/sandbox/rst/dialog/InteractionPatternInfo.proto new file mode 100644 index 0000000..1788b64 --- /dev/null +++ b/proto/sandbox/rst/dialog/InteractionPatternInfo.proto @@ -0,0 +1,24 @@ +package rst.dialog; + +option java_outer_classname = "InteractionPatternInfoType"; + +import "rst/statemachine/StateChange.proto"; + +/** + * A description of a current state of a pamini interaction pattern. + * + * @author Birte Carlmeyer + */ +message InteractionPatternInfo { + + /** + * Name of the interaction pattern. + */ + required string name = 1; + + /** + * Current state change of the intercation pattern. + */ + required statemachine.StateChange state_change = 2; + +} -- 1.9.1