Datasets:

Modalities:
Text
Formats:
text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
chujiezheng commited on
Commit
32c54c1
1 Parent(s): e41948d

Upload 5 files

Browse files
Files changed (5) hide show
  1. process.py +3 -17
  2. sample.json +165 -10
  3. test.txt +0 -0
  4. train.txt +0 -0
  5. valid.txt +0 -0
process.py CHANGED
@@ -17,15 +17,8 @@ strat2id = {strat: i for i, strat in enumerate(strategies)}
17
  original = json.load(open('./ESConv.json'))
18
 
19
  def process_data(d):
20
- emotion = d['emotion_type']
21
- problem = d["problem_type"]
22
- situation = d['situation']
23
- #init_intensity = int(d['score']['speaker']['begin_intensity'])
24
- #final_intensity = int(d['score']['speaker']['end_intensity'])
25
-
26
- d = d['dialog']
27
  dial = []
28
- for uttr in d:
29
  text = _norm(uttr['content'])
30
  role = uttr['speaker']
31
  if role == 'seeker':
@@ -39,15 +32,8 @@ def process_data(d):
39
  'speaker': 'sys',
40
  'strategy': uttr['annotation']['strategy'],
41
  })
42
- res = {
43
- 'emotion_type': emotion,
44
- 'problem_type': problem,
45
- 'situation': situation,
46
- #'init_intensity': init_intensity,
47
- #'final_intensity': final_intensity,
48
- 'dialog': dial,
49
- }
50
- return res
51
 
52
  data = []
53
 
 
17
  original = json.load(open('./ESConv.json'))
18
 
19
  def process_data(d):
 
 
 
 
 
 
 
20
  dial = []
21
+ for uttr in d['dialog']:
22
  text = _norm(uttr['content'])
23
  role = uttr['speaker']
24
  if role == 'seeker':
 
32
  'speaker': 'sys',
33
  'strategy': uttr['annotation']['strategy'],
34
  })
35
+ d['dialog'] = dial
36
+ return d
 
 
 
 
 
 
 
37
 
38
  data = []
39
 
sample.json CHANGED
@@ -1,8 +1,20 @@
1
  [
2
  {
 
3
  "emotion_type": "anxiety",
4
  "problem_type": "job crisis",
5
  "situation": "I am on short term disability and I am afraid I will lose my job if I don't go back soon.",
 
 
 
 
 
 
 
 
 
 
 
6
  "dialog": [
7
  {
8
  "text": "Hello good afternoon.",
@@ -115,12 +127,28 @@
115
  "speaker": "sys",
116
  "strategy": "Others"
117
  }
118
- ]
 
 
 
 
119
  },
120
  {
 
121
  "emotion_type": "depression",
122
  "problem_type": "ongoing depression",
123
  "situation": "I have been in a depression since my father died last year. We have had to sell our home and move to a much smaller place due to losing his income. I am older but lived with my parents to help them because they are both ill. it has been an ongoing struggle",
 
 
 
 
 
 
 
 
 
 
 
124
  "dialog": [
125
  {
126
  "text": "How are you doing today?",
@@ -262,12 +290,28 @@
262
  "text": "I will look online for the info you suggested I will see if maybe I can talk to a friend if we can do safely thanks again",
263
  "speaker": "usr"
264
  }
265
- ]
 
 
 
 
266
  },
267
  {
 
268
  "emotion_type": "anxiety",
269
  "problem_type": "job crisis",
270
  "situation": "I would like to get an online job but it is very competitive.",
 
 
 
 
 
 
 
 
 
 
 
271
  "dialog": [
272
  {
273
  "text": "I feel obligated to help you this Christmas Night.",
@@ -493,12 +537,28 @@
493
  "speaker": "sys",
494
  "strategy": "Reflection of feelings"
495
  }
496
- ]
 
 
 
 
497
  },
498
  {
 
499
  "emotion_type": "depression",
500
  "problem_type": "breakup with partner",
501
  "situation": "turned in ex gf to cps for giving her kids drugs.",
 
 
 
 
 
 
 
 
 
 
 
502
  "dialog": [
503
  {
504
  "text": "Hello! Hope you are doing well. How may I assist you?",
@@ -602,12 +662,28 @@
602
  "speaker": "sys",
603
  "strategy": "Others"
604
  }
605
- ]
 
 
 
 
606
  },
607
  {
 
608
  "emotion_type": "disgust",
609
  "problem_type": "problems with friends",
610
  "situation": "one of my friends cheated on her boyfriend.",
 
 
 
 
 
 
 
 
 
 
 
611
  "dialog": [
612
  {
613
  "text": "Hi can you help me with my problem?",
@@ -748,12 +824,23 @@
748
  "speaker": "sys",
749
  "strategy": "Providing Suggestions"
750
  }
751
- ]
 
 
 
 
752
  },
753
  {
 
754
  "emotion_type": "fear",
755
  "problem_type": "ongoing depression",
756
  "situation": "I'm fearful of where I'll be living in the future.",
 
 
 
 
 
 
757
  "dialog": [
758
  {
759
  "text": "I've tried this before and there wasn't anyone on the support side...",
@@ -900,12 +987,28 @@
900
  "text": "Thank you, you too!",
901
  "speaker": "usr"
902
  }
903
- ]
 
 
 
 
904
  },
905
  {
 
906
  "emotion_type": "anxiety",
907
  "problem_type": "academic pressure",
908
  "situation": "I'm failing my classes and I'm on scholarship",
 
 
 
 
 
 
 
 
 
 
 
909
  "dialog": [
910
  {
911
  "text": "hi I need help. I'm under academic stress",
@@ -997,12 +1100,28 @@
997
  "text": "I actually was thinking of going somewhere else to study. but i actually like the idea of a schedule better. I will try that first. Thank you.",
998
  "speaker": "usr"
999
  }
1000
- ]
 
 
 
 
1001
  },
1002
  {
 
1003
  "emotion_type": "anxiety",
1004
  "problem_type": "academic pressure",
1005
  "situation": "Iam facing a lot of academic pressure to coplete the degree on time..",
 
 
 
 
 
 
 
 
 
 
 
1006
  "dialog": [
1007
  {
1008
  "text": "Hi..how are you doing today",
@@ -1094,12 +1213,28 @@
1094
  "text": "bye,,Stay safe and healthy in this pandemic..",
1095
  "speaker": "usr"
1096
  }
1097
- ]
 
 
 
 
1098
  },
1099
  {
 
1100
  "emotion_type": "anxiety",
1101
  "problem_type": "job crisis",
1102
  "situation": "I recently left my job because of a toxic environment but now I'm having trouble finding another and I'm running out of money.",
 
 
 
 
 
 
 
 
 
 
 
1103
  "dialog": [
1104
  {
1105
  "text": "Hello!",
@@ -1214,12 +1349,28 @@
1214
  "speaker": "sys",
1215
  "strategy": "Affirmation and Reassurance"
1216
  }
1217
- ]
 
 
 
 
1218
  },
1219
  {
 
1220
  "emotion_type": "anxiety",
1221
  "problem_type": "ongoing depression",
1222
  "situation": "Ilost my home when my partner died. He had changed the will and I didn't know.",
 
 
 
 
 
 
 
 
 
 
 
1223
  "dialog": [
1224
  {
1225
  "text": "I need understanding at this time.",
@@ -1350,6 +1501,10 @@
1350
  "text": "Help is so great between people.",
1351
  "speaker": "usr"
1352
  }
1353
- ]
 
 
 
 
1354
  }
1355
  ]
 
1
  [
2
  {
3
+ "experience_type": "Current Experience",
4
  "emotion_type": "anxiety",
5
  "problem_type": "job crisis",
6
  "situation": "I am on short term disability and I am afraid I will lose my job if I don't go back soon.",
7
+ "survey_score": {
8
+ "seeker": {
9
+ "initial_emotion_intensity": "3",
10
+ "empathy": "5",
11
+ "relevance": "5",
12
+ "final_emotion_intensity": "2"
13
+ },
14
+ "supporter": {
15
+ "relevance": "5"
16
+ }
17
+ },
18
  "dialog": [
19
  {
20
  "text": "Hello good afternoon.",
 
127
  "speaker": "sys",
128
  "strategy": "Others"
129
  }
130
+ ],
131
+ "seeker_question1": "They did a great job, but should've asked why I'm out on disability to get more context.",
132
+ "seeker_question2": "N.A",
133
+ "supporter_question1": "I enjoyed helping someone in need",
134
+ "supporter_question2": ""
135
  },
136
  {
137
+ "experience_type": "Current Experience",
138
  "emotion_type": "depression",
139
  "problem_type": "ongoing depression",
140
  "situation": "I have been in a depression since my father died last year. We have had to sell our home and move to a much smaller place due to losing his income. I am older but lived with my parents to help them because they are both ill. it has been an ongoing struggle",
141
+ "survey_score": {
142
+ "seeker": {
143
+ "initial_emotion_intensity": "4",
144
+ "empathy": "4",
145
+ "relevance": "5",
146
+ "final_emotion_intensity": "3"
147
+ },
148
+ "supporter": {
149
+ "relevance": "5"
150
+ }
151
+ },
152
  "dialog": [
153
  {
154
  "text": "How are you doing today?",
 
290
  "text": "I will look online for the info you suggested I will see if maybe I can talk to a friend if we can do safely thanks again",
291
  "speaker": "usr"
292
  }
293
+ ],
294
+ "seeker_question1": "it was a good task kind of makes you look at your self",
295
+ "seeker_question2": "no was a good one thank you",
296
+ "supporter_question1": "The guidance as to how to structure the conversation helped me frame my advice.",
297
+ "supporter_question2": "I wish I could have used emoji's to add some additional emotional graphics to my text."
298
  },
299
  {
300
+ "experience_type": "Current Experience",
301
  "emotion_type": "anxiety",
302
  "problem_type": "job crisis",
303
  "situation": "I would like to get an online job but it is very competitive.",
304
+ "survey_score": {
305
+ "seeker": {
306
+ "initial_emotion_intensity": "5",
307
+ "empathy": "5",
308
+ "relevance": "4",
309
+ "final_emotion_intensity": "3"
310
+ },
311
+ "supporter": {
312
+ "relevance": "3"
313
+ }
314
+ },
315
  "dialog": [
316
  {
317
  "text": "I feel obligated to help you this Christmas Night.",
 
537
  "speaker": "sys",
538
  "strategy": "Reflection of feelings"
539
  }
540
+ ],
541
+ "seeker_question1": "no",
542
+ "seeker_question2": "no",
543
+ "supporter_question1": "I think that is was a vague issue that the seeker was asking for help with.",
544
+ "supporter_question2": "I think that there should be a push notification to continue talking with a message in red that blinks on the screen near the chat box."
545
  },
546
  {
547
+ "experience_type": "Current Experience",
548
  "emotion_type": "depression",
549
  "problem_type": "breakup with partner",
550
  "situation": "turned in ex gf to cps for giving her kids drugs.",
551
+ "survey_score": {
552
+ "seeker": {
553
+ "initial_emotion_intensity": "5",
554
+ "empathy": "3",
555
+ "relevance": "2",
556
+ "final_emotion_intensity": "4"
557
+ },
558
+ "supporter": {
559
+ "relevance": "5"
560
+ }
561
+ },
562
  "dialog": [
563
  {
564
  "text": "Hello! Hope you are doing well. How may I assist you?",
 
662
  "speaker": "sys",
663
  "strategy": "Others"
664
  }
665
+ ],
666
+ "seeker_question1": "",
667
+ "seeker_question2": "",
668
+ "supporter_question1": "",
669
+ "supporter_question2": ""
670
  },
671
  {
672
+ "experience_type": "Previous Experience",
673
  "emotion_type": "disgust",
674
  "problem_type": "problems with friends",
675
  "situation": "one of my friends cheated on her boyfriend.",
676
+ "survey_score": {
677
+ "seeker": {
678
+ "initial_emotion_intensity": "5",
679
+ "empathy": "5",
680
+ "relevance": "5",
681
+ "final_emotion_intensity": "2"
682
+ },
683
+ "supporter": {
684
+ "relevance": "5"
685
+ }
686
+ },
687
  "dialog": [
688
  {
689
  "text": "Hi can you help me with my problem?",
 
824
  "speaker": "sys",
825
  "strategy": "Providing Suggestions"
826
  }
827
+ ],
828
+ "seeker_question1": "no",
829
+ "seeker_question2": "15 minutes takes too long, 10 message count is better to quit on.",
830
+ "supporter_question1": "I find this live communication really enjoyable.",
831
+ "supporter_question2": ""
832
  },
833
  {
834
+ "experience_type": "Current Experience",
835
  "emotion_type": "fear",
836
  "problem_type": "ongoing depression",
837
  "situation": "I'm fearful of where I'll be living in the future.",
838
+ "survey_score": {
839
+ "seeker": {
840
+ "initial_emotion_intensity": "4"
841
+ },
842
+ "supporter": {}
843
+ },
844
  "dialog": [
845
  {
846
  "text": "I've tried this before and there wasn't anyone on the support side...",
 
987
  "text": "Thank you, you too!",
988
  "speaker": "usr"
989
  }
990
+ ],
991
+ "seeker_question1": "I liked the task. I like chatting with people via text.",
992
+ "seeker_question2": "No, I'd love to do these every day!",
993
+ "supporter_question1": "nothing",
994
+ "supporter_question2": "nothing"
995
  },
996
  {
997
+ "experience_type": "Current Experience",
998
  "emotion_type": "anxiety",
999
  "problem_type": "academic pressure",
1000
  "situation": "I'm failing my classes and I'm on scholarship",
1001
+ "survey_score": {
1002
+ "seeker": {
1003
+ "initial_emotion_intensity": "5",
1004
+ "empathy": "5",
1005
+ "relevance": "5",
1006
+ "final_emotion_intensity": "1"
1007
+ },
1008
+ "supporter": {
1009
+ "relevance": "5"
1010
+ }
1011
+ },
1012
  "dialog": [
1013
  {
1014
  "text": "hi I need help. I'm under academic stress",
 
1100
  "text": "I actually was thinking of going somewhere else to study. but i actually like the idea of a schedule better. I will try that first. Thank you.",
1101
  "speaker": "usr"
1102
  }
1103
+ ],
1104
+ "seeker_question1": "I think it will be a great chat for people really going through things",
1105
+ "seeker_question2": "its great",
1106
+ "supporter_question1": "I liked chatting so casually and having simple guidelines to help me through the conversation",
1107
+ "supporter_question2": "maybe you can improve how the pop up examples show up when you hover of things"
1108
  },
1109
  {
1110
+ "experience_type": "Current Experience",
1111
  "emotion_type": "anxiety",
1112
  "problem_type": "academic pressure",
1113
  "situation": "Iam facing a lot of academic pressure to coplete the degree on time..",
1114
+ "survey_score": {
1115
+ "seeker": {
1116
+ "initial_emotion_intensity": "5",
1117
+ "empathy": "5",
1118
+ "relevance": "5",
1119
+ "final_emotion_intensity": "4"
1120
+ },
1121
+ "supporter": {
1122
+ "relevance": "5"
1123
+ }
1124
+ },
1125
  "dialog": [
1126
  {
1127
  "text": "Hi..how are you doing today",
 
1213
  "text": "bye,,Stay safe and healthy in this pandemic..",
1214
  "speaker": "usr"
1215
  }
1216
+ ],
1217
+ "seeker_question1": "no",
1218
+ "seeker_question2": "no",
1219
+ "supporter_question1": "no",
1220
+ "supporter_question2": "no"
1221
  },
1222
  {
1223
+ "experience_type": "Current Experience",
1224
  "emotion_type": "anxiety",
1225
  "problem_type": "job crisis",
1226
  "situation": "I recently left my job because of a toxic environment but now I'm having trouble finding another and I'm running out of money.",
1227
+ "survey_score": {
1228
+ "seeker": {
1229
+ "initial_emotion_intensity": "4",
1230
+ "empathy": "4",
1231
+ "relevance": "4",
1232
+ "final_emotion_intensity": "2"
1233
+ },
1234
+ "supporter": {
1235
+ "relevance": "5"
1236
+ }
1237
+ },
1238
  "dialog": [
1239
  {
1240
  "text": "Hello!",
 
1349
  "speaker": "sys",
1350
  "strategy": "Affirmation and Reassurance"
1351
  }
1352
+ ],
1353
+ "seeker_question1": "",
1354
+ "seeker_question2": "",
1355
+ "supporter_question1": "Seeker gave great information on their problem and were very specific",
1356
+ "supporter_question2": "Great website, great task"
1357
  },
1358
  {
1359
+ "experience_type": "Previous Experience",
1360
  "emotion_type": "anxiety",
1361
  "problem_type": "ongoing depression",
1362
  "situation": "Ilost my home when my partner died. He had changed the will and I didn't know.",
1363
+ "survey_score": {
1364
+ "seeker": {
1365
+ "initial_emotion_intensity": "4",
1366
+ "empathy": "4",
1367
+ "relevance": "3",
1368
+ "final_emotion_intensity": "3"
1369
+ },
1370
+ "supporter": {
1371
+ "relevance": "5"
1372
+ }
1373
+ },
1374
  "dialog": [
1375
  {
1376
  "text": "I need understanding at this time.",
 
1501
  "text": "Help is so great between people.",
1502
  "speaker": "usr"
1503
  }
1504
+ ],
1505
+ "seeker_question1": "no",
1506
+ "seeker_question2": "no",
1507
+ "supporter_question1": "",
1508
+ "supporter_question2": ""
1509
  }
1510
  ]
test.txt CHANGED
The diff for this file is too large to render. See raw diff
 
train.txt CHANGED
The diff for this file is too large to render. See raw diff
 
valid.txt CHANGED
The diff for this file is too large to render. See raw diff