-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
100 lines (100 loc) · 4.58 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
benchmarks = {
'MIntRec':{
'intent_labels': [
'Complain', 'Praise', 'Apologise', 'Thank', 'Criticize',
'Agree', 'Taunt', 'Flaunt',
'Joke', 'Oppose',
'Comfort', 'Care', 'Inform', 'Advise', 'Arrange', 'Introduce', 'Leave',
'Prevent', 'Greet', 'Ask for help'
],
'binary_maps': {
'Complain': 'Emotion', 'Praise':'Emotion', 'Apologise': 'Emotion', 'Thank':'Emotion', 'Criticize': 'Emotion',
'Care': 'Emotion', 'Agree': 'Emotion', 'Taunt': 'Emotion', 'Flaunt': 'Emotion',
'Joke':'Emotion', 'Oppose': 'Emotion',
'Inform':'Goal', 'Advise':'Goal', 'Arrange': 'Goal', 'Introduce': 'Goal', 'Leave':'Goal',
'Prevent':'Goal', 'Greet': 'Goal', 'Ask for help': 'Goal', 'Comfort': 'Goal'
},
'binary_intent_labels': ['Emotion', 'Goal'],
'max_seq_lengths': {
'text': 30,
'video': 230,
'audio': 480,
},
'ood_data':{
'MIntRec-OOD': {'ood_label': 'UNK'}
}
},
'MIntRec2.0': {
'intent_labels': [
'Acknowledge', 'Advise', 'Agree', 'Apologise', 'Arrange',
'Ask for help', 'Asking for opinions', 'Care', 'Comfort', 'Complain',
'Confirm', 'Criticize', 'Doubt', 'Emphasize', 'Explain',
'Flaunt', 'Greet', 'Inform', 'Introduce', 'Invite',
'Joke', 'Leave', 'Oppose', 'Plan', 'Praise',
'Prevent', 'Refuse', 'Taunt', 'Thank', 'Warn',
],
'speaker_list' : ['friends person5', 'Cheyenne', 'Tate', 'Joey', 'Chandler', 'Dina', 'Myrtle', 'Sheldon', 'Garrett', 'Amy', 'Rajesh', 'Justine', 'friends person4',
'Leonard', 'friends person2', 'Janet', 'Jerry', 'Glenn', 'big bang person1', 'Penny', 'superstore person1', 'superstore person2', 'superstore person4',
'Sandra', 'friends person1', 'Carol', 'Monica', 'Phoebe', 'Jeff', 'big bang person3', 'Emily', 'Gleen', 'Rachel', 'Howard', 'Adam', 'Ross', 'big bang person2',
'superstore person3', 'Nico', 'Kelly', 'Bo', 'big bang person4', 'Jonah', 'Bernadette', 'Cody', 'Marcus', 'friends person3'
],
'max_seq_lengths': {
'text': 50,
'video': 180,
'audio': 400
},
'ood_data':{
'MIntRec2.0-OOD':{'ood_label': 'UNK'}
}
},
'MELD-DA':{
'intent_labels': [
'Greeting', 'Question', 'Answer', 'Statement Opinion', 'Statement Non Opinion',
'Apology', 'Command', 'Agreement', 'Disagreement',
'Acknowledge', 'Backchannel'
],
'label_maps': {
'g': 'Greeting', 'q': 'Question', 'ans': 'Answer', 'o': 'Statement Opinion', 's': 'Statement Non Opinion',
'ap': 'Apology', 'c': 'Command', 'ag': 'Agreement', 'dag': 'Disagreement',
'a': 'Acknowledge', 'b': 'Backchannel','oth': 'oth'
},
'max_seq_lengths': {
'text': 70, # max: 69, final: 27
'video': 250, ### max: 618, final: 242
'audio': 530 ### max 2052, final: 524
},
'ood_data':{
'MELD-DA-OOD': {'ood_label': 'oth'},
'MIntRec-OOD': {'ood_label': 'UNK'},
'TED-OOD': {'ood_label': 'UNK'},
'IEMOCAP': {'ood_label': 'oth'},
'IEMOCAP-DA-OOD': {'ood_label': 'oth'},
'MIntRec': {'ood_label': 'UNK'}
}
},
'IEMOCAP-DA':{
'intent_labels': [
'Greeting', 'Question', 'Answer', 'Statement Opinion', 'Statement Non Opinion',
'Apology', 'Command', 'Agreement', 'Disagreement',
'Acknowledge', 'Backchannel'
],
'label_maps': {
'g': 'Greeting', 'q': 'Question', 'ans': 'Answer', 'o': 'Statement Opinion', 's': 'Statement Non Opinion',
'ap': 'Apology', 'c': 'Command', 'ag': 'Agreement', 'dag': 'Disagreement',
'a': 'Acknowledge', 'b': 'Backchannel', 'oth': 'oth'
},
'max_seq_lengths': {
'text': 44,
'video': 230, # mean+sigma
'audio': 380
},
'ood_data':{
'IEMOCAP-DA-OOD': {'ood_label': 'oth'},
'MELD-DA': {'ood_label': 'oth'},
'MELD-DA-OOD': {'ood_label': 'oth'},
'MIntRec-OOD': {'ood_label': 'UNK'},
'TED-OOD': {'ood_label': 'UNK'},
'MIntRec': {'ood_label': 'UNK'},
}
},
}