0001-Added-dialog-data-types-in-proto-sandbox-rst-dialog.patch

B. Carlmeyer, 09/07/2015 01:19 PM

Download (6.69 KB)

View differences:

proto/sandbox/rst/dialog/DialogAct.proto
1
package rst.dialog;
2

  
3
option java_outer_classname = "DialogActType";
4

  
5
import "rst/dialog/IncrementalUnit.proto";
6
import "rst/xml/XOP.proto";
7

  
8
/**
9
 * A description of a dialog act incremental unit consisting an xml speech
10
 * hypothesis as payload.
11
 *
12
 * @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de>
13
 */
14
message DialogAct {
15

  
16
    /**
17
     * Possible kinds of dialog act types.
18
     */
19
    enum Type {
20

  
21
        /**
22
         * Conversation opening.
23
         */
24
        GREET = 0;
25

  
26
        /*
27
         * Affirmative answer.
28
         */
29
        ACCEPT = 1;
30

  
31
        /*
32
         * Negative answer.
33
         */
34
        REJECT = 2;
35

  
36
        /*
37
         * Confirmation.
38
         */
39
        CONFIRM = 3;
40

  
41
        /*
42
         * Negation.
43
         */
44
        NEGATE = 4;
45

  
46
        /*
47
         * Speaker wants an information from addressee.
48
         */
49
        INFO_REQUEST = 5;
50

  
51
        /*
52
         * Speaker offers to perform an action.
53
         */
54
        ACTION_REQUEST = 6;
55

  
56
        /*
57
         * A statement.
58
         */
59
        STATEMENT = 7;
60

  
61
        /*
62
         * An answere (not a yes/no answer).
63
         */
64
        ANSWERE = 8;
65

  
66
        /*
67
         * Conversation closing.
68
         */
69
        GOODBYE = 9;
70

  
71
        /*
72
         * The current dialog act doesn't match to any of the previous types.
73
         */
74
        OTHER = 10;
75

  
76
    }
77

  
78

  
79
    /**
80
     * The type of the current dialog act.
81
     */
82
    required Type type = 1;
83

  
84
    /**
85
     * The basic information of the dialog act IU.
86
     */
87
    required IncrementalUnit iu = 2;
88

  
89

  
90
    /**
91
     * The dialog act has an  XML string (UTF-8 encoded) speech hypothesis as
92
     * payload (until we have a special speech hypothesis type).
93
     *
94
     * Has to be valid XML.
95
     */
96
    required string speech_hypothesis = 3;
97

  
98

  
99

  
100
}
proto/sandbox/rst/dialog/DialogManagerCommand.proto
1
package rst.dialog;
2

  
3
option java_outer_classname = "DialogManagerCommandType";
4

  
5
/**
6
 * A description of a command for a dialog manager.
7
 *
8
 * @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de>
9
 */
10
message DialogManagerCommand {
11

  
12
    /**
13
     * Possible kinds of commands.
14
     */
15
    enum Command {
16

  
17
        /**
18
         * Reset the whole interaction.
19
         */
20
        RESET_INTERACTION = 0;
21

  
22
        /*
23
         * Reset a single interaction pattern.
24
         */
25
        RESET_PATTERN = 1;
26

  
27
    }
28

  
29
    /**
30
     * The chosen command for the dialog manager
31
     */
32
    required Command command = 1;
33

  
34
    /**
35
     * For the command @ref .RESET_PATTERN this is a required information,
36
     * which is linked to an interaction pattern.
37
     */
38
    optional string pattern_name = 2;
39

  
40
}
proto/sandbox/rst/dialog/IncrementalUnit.proto
1
package rst.dialog;
2

  
3
option java_outer_classname = "IncrementalUnitType";
4

  
5
import "rst/timing/Interval.proto";
6

  
7
/**
8
 * A description of the basic information of an incremental unit (IU) of the
9
 * IU-model of incremental dialogue processing.
10
 *
11
 * @see http://wwwhomes.uni-bielefeld.de/dschlangen/inpro/abstractModel.html
12
 *      "A General, Abstract Model of Incremental Dialogue Processing"
13
 *
14
 * @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de>
15
 */
16
message IncrementalUnit {
17

  
18
    /**
19
     * The incremental unit can be in different states.
20
     */
21
    enum EditType {
22

  
23
        /**
24
         * Indicating a new incremental unit.
25
         */
26
        ADD = 0;
27

  
28
        /**
29
         * Replaced the last incremental unit.
30
         */
31
        UPDATED = 1;
32

  
33
        /**
34
         * A previously added unit has been revoked.
35
         */
36
        REVOKE = 2;
37

  
38
        /**
39
         * The incremental unit has been finally committed and will not be
40
         * changed any more.
41
         */
42
        COMMIT = 3;
43

  
44
    }
45

  
46
    /**
47
     * Start and end time of the incremental unit.
48
     */
49
    optional timing.Interval timestamps = 2;
50

  
51
    /**
52
     * A unique id for the incremental unit.
53
     */
54
    required string id = 3;
55

  
56
    /**
57
     * Optional id list of IU which have a same-level link.
58
     * Same-level links (sll) connect IUs, which are produced by the same module
59
     * and reflect their temporal order.
60
     */
61
    repeated string sll_id = 4;
62

  
63
    /**
64
     * Optional id list of IU which have a grounded-in link.
65
     * Grounded-in links (gil) represent on which IUs they depend, thus
66
     * representing the possibility to build a hierarchical structure.
67
     */
68
    repeated string gil_id = 5;
69

  
70
}
proto/sandbox/rst/dialog/InteractionPatternInfo.proto
1
package rst.dialog;
2

  
3
option java_outer_classname = "InteractionPatternInfoType";
4

  
5
import "rst/statemachine/StateChange.proto";
6

  
7
/**
8
 * A description of a current state of a pamini interaction pattern.
9
 *
10
 * @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de>
11
 */
12
message InteractionPatternInfo {
13

  
14
    /**
15
     * Name of the interaction pattern.
16
     */
17
    required string name = 1;
18

  
19
    /**
20
     * Current state change of the intercation pattern.
21
     */
22
    required statemachine.StateChange state_change = 2;
23

  
24
}
0
-