chujiezheng commited on
Commit
cce381e
1 Parent(s): 99585ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -7
README.md CHANGED
@@ -16,16 +16,16 @@ from transformers.models.blenderbot import BlenderbotTokenizer, BlenderbotForCon
16
  def _norm(x):
17
  return ' '.join(x.strip().split())
18
 
19
- tokenizer = BlenderbotTokenizer.from_pretrained('thu-coai/blenderbot-400M-esconv')
20
- model = BlenderbotForConditionalGeneration.from_pretrained('thu-coai/blenderbot-400M-esconv')
21
  model.eval()
22
 
23
  utterances = [
24
- "I am having a lot of anxiety about quitting my current job. It is too stressful but pays well",
25
- "What makes your job stressful for you?",
26
- "I have to deal with many people in hard financial situations and it is upsetting",
27
- "Do you help your clients to make it to a better financial situation?",
28
- "I do, but often they are not going to get back to what they want. Many people are going to lose their home when safeguards are lifted",
29
  ]
30
  input_sequence = ' '.join([' ' + e for e in utterances]) + tokenizer.eos_token # add space prefix and separate utterances with two spaces
31
  input_ids = tokenizer.convert_tokens_to_ids(tokenizer.tokenize(input_sequence))[-128:]
@@ -38,3 +38,31 @@ print(generation)
38
 
39
  utterances.append(generation[0]) # for future loop
40
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  def _norm(x):
17
  return ' '.join(x.strip().split())
18
 
19
+ tokenizer = BlenderbotTokenizer.from_pretrained('chujiezheng/blenderbot-1B-augesc')
20
+ model = BlenderbotForConditionalGeneration.from_pretrained('chujiezheng/blenderbot-1B-augesc')
21
  model.eval()
22
 
23
  utterances = [
24
+ "I am having a lot of anxiety about quitting my current job. It is too stressful but pays well",
25
+ "What makes your job stressful for you?",
26
+ "I have to deal with many people in hard financial situations and it is upsetting",
27
+ "Do you help your clients to make it to a better financial situation?",
28
+ "I do, but often they are not going to get back to what they want. Many people are going to lose their home when safeguards are lifted",
29
  ]
30
  input_sequence = ' '.join([' ' + e for e in utterances]) + tokenizer.eos_token # add space prefix and separate utterances with two spaces
31
  input_ids = tokenizer.convert_tokens_to_ids(tokenizer.tokenize(input_sequence))[-128:]
 
38
 
39
  utterances.append(generation[0]) # for future loop
40
  ```
41
+
42
+
43
+ Please kindly cite the [original paper](https://aclanthology.org/2021.acl-long.269/) if you use this model:
44
+
45
+ ```bib
46
+ @inproceedings{liu-etal-2021-towards,
47
+ title={Towards Emotional Support Dialog Systems},
48
+ author={Liu, Siyang and
49
+ Zheng, Chujie and
50
+ Demasi, Orianna and
51
+ Sabour, Sahand and
52
+ Li, Yu and
53
+ Yu, Zhou and
54
+ Jiang, Yong and
55
+ Huang, Minlie},
56
+ booktitle={Proceedings of the 59th annual meeting of the Association for Computational Linguistics},
57
+ year={2021}
58
+ }
59
+ @article{zheng2022augesc,
60
+ title={AugESC: Large-scale Data Augmentation for Emotional Support Conversation with Pre-trained Language Models},
61
+ author={Zheng, Chujie and
62
+ Sabour, Sahand and
63
+ Wen, Jiaxin and
64
+ Huang, Minlie},
65
+ journal={arXiv preprint arXiv:2202.13047},
66
+ year={2022}
67
+ }
68
+ ```