-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
201 lines (188 loc) · 12.2 KB
/
config.yaml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
logfile: "./logs.txt"
output_folder: "./outputs"
input_folder: "./input"
# These files do not have captions
memotion_discard_files: ["image_120.jpg","image_6785.jpg","image_6787.jpg","image_4800.jpg","image_6782.jpg"]
chatGPT:
collect_examples: >
[
{
"role": "system", "content": "You are designated as an assistant that identify and extract high-level topics from memes. You should avoid giving specific details and provide unique topics solely."
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a llama in the woods with a caption that says \"this is my llama\" in the photo
Meme's Superimposed Text: VOLUNTARY TOP UP MY CPF SPECIAL ACCOUNT??
Topics:"""
},
{
"role": "assistant", "content": """['Animal', 'Personal Finance']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a man is sitting at a table with a laptop and a sign that says \"i am not in the virus
Meme's Superimposed Text: Stabilisation Phase extended to Nov 21; more time needed to stabilise COVID-19 situation: MOH \"Even as the public hospitals continue to set aside more beds for COVID-19 patients, we have observed longer admission waiting time for these patients,\" MOH said.
Topics:"""
},
{
"role": "assistant", "content": """['Covid-19']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a man in a car with the caption, when you're in the car and you see in the car
Meme's Superimposed Text: recruit: why tf gotta wear my id tag and bring my FAD everywhere? BMT spec: IT'S THE LAW.
Topics:"""
},
{
"role": "assistant", "content": """['Military']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: an asian man wearing glasses and a red tie in a microphone
Meme's Superimposed Text: IF TAN CHENG BOCK WAS MALAY THE PAP GOV WOULD'VE RESERVED THE PRESIDENTIAL ELECTION FOR INDIANS OR EURASIANS.
Topics:"""
},
{
"role": "assistant", "content": """['Racism','Politics']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a collage of images showing people on a bus in the video
Meme's Superimposed Text: TAKE MRT SCARED AUNTY SCREAM AT YOU TAKE BUS SCARED SOMEONE PUSH YOU OFF TAKE TAKI SCARED FERRARI RAM YOU TAKE BICYCLE SCARED KENNA LANGAH BY VAN.
Topics:"""
},
{
"role": "assistant", "content": """['Transportation']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a white container with food in it and a light bulb in the camera
Meme's Superimposed Text: Families living in four-room HDB flats can expect their average monthly bill to go down by S$3.89. Electricity tariff to fall 5.1% from April to June $3.89 SAVINGS? BARELY ENOUGHFOR CAI PNG.
Topics:"""
},
{
"role": "assistant", "content": """['Cost of Living','Housing']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a man is standing in front of a display of yellow ducks in a restaurant
Meme's Superimposed Text: Chicken rice stalls in Singapore on 1st June be looking like.
Topics:"""
},
{
"role": "assistant", "content": """['Food']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a young man in uniform standing in front of a building in the airport
Meme's Superimposed Text: POLICE GOT SHOT AT AIRPORT BY A CAMERA.
Topics:"""
},
{
"role": "assistant", "content": """['Police']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: two pictures of a man driving car and in suit
Meme's Superimposed Text: WHAT YOU THINK YOU LOOK LIKE BEHIND THE WHEEL WHAT YOU ACTUALLY LOOK LIKE BEHIND THE WHEEL
Topics:"""
},
{
"role": "assistant", "content": """['Humor']"""
},
{
"role": "user", "content": """Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: a woman is talking to man in front of crowd
Meme's Superimposed Text: GET OUT OF HERE WITH YOUR SCIENCE GENDER IS A SOCIAL CONSTRUCT
Topics:"""
},
{
"role": "assistant", "content": """['Anti Femenism']"""
}
]
group_examples: >
[
{"role": "system", "content": """You are designated as an AI assistant that determine the most appropriate overarching
topic from a given list of topics that best corresponds to a current topic. Specifically, you are required to identify
the most fitting topic from the provided list that is associated with the given topic, without providing any topics that are not included in the given list of topics."""
},
{
"role": "user", "content": """Topics:\n1. Military\n2. Housing\n3. Education\n4.Technology\n5.Entertainment\n6.Healthcare.
\n\nCurrent topic : War
\n\nWhat is the most suitable topic from the given topics that corresponds to the current topic?"""
},
{
"role": "assistant", "content": """Military"""
}
]
word_order_examples: >
[
{
"role": "system", "content": """You are designated as an AI assistant that given a list of words and a topic,
determines the top 10 words related to the topic,without providing any words that are not included in the above list of words."""
},
{
"role": "user", "content": """Topic : 'technology'
\n\nWords : \n1. singapore\n2. tracetogether\n3. computer\n4. robot\n5. google\n6. cell\n 7.internet\n8. airpods\n9. electricity\n10.video \n11. ball
\n12. tiktok \n13. singapore \n14. ns \n15. iphone \n16. officer \n16. message
\n\nGiven the above topic,list the top 10 words related to the topic."""
},
{
"role": "assistant", "content": """['computer','robot','google','iphone','airpods','internet','tracetogether','video','tiktok','message']"""
},
{
"role": "user", "content": """Topic : 'politics'
\n\nWords : \n1. police \n2. says \n3. pm \n4. chinese \n5.pap \n6. lee \n7.government \n8. people \n9. man \n10. minister \n11. force \n12. swee
\n13. heng \n14. scdf \n15. malay \n16. prime \n17. spf \n18. president \n19. keat \n20. stop \n21. wp \n22.elections \n23. gst \n24. raeesah \n25. govt \n26. ns \n27. malay
\n\nGiven the above topic ,list the top 10 words related to the topic."""
},
{
"role": "assistant", "content": """['government','govt', 'pm', 'minister', 'pap', 'lee', 'president', 'keat', 'heng','wp']"""
}
]
collect_template: >
"""Please list the high-level topics in the following meme using its image caption and superimposed text.
Meme's Image Caption: {caption}
Meme's Superimposed Text: {text}
Topics: """
group_template: >
"""Topics: {topics}
Current topic : {topic}
What is the most suitable topic from the given topics that corresponds to the current topic?"""
word_order_template: >
"""Topic : {topic}
\n\nWords : {words}
\n\nGiven the above topic,list the top 10 words related to the topic."""
llama:
collect_examples: >
"""A meme image shows: a llama in the woods with a caption that says \"this is my llama\" in the photo and superimposed text: VOLUNTARY TOP UP MY CPF SPECIAL ACCOUNT?? \
The topics in this meme are: 'Animal', 'Personal Finance'\
A meme image shows: a man is sitting at a table with a laptop and a sign that says \"i am not in the virus and superimposed text: Stabilisation Phase extended to Nov 21; more time needed to stabilise COVID-19 situation: MOH \"Even as the public hospitals continue to set aside more beds for COVID-19 patients, we have observed longer admission waiting time for these patients,\" MOH said. \
The topics in this meme are: 'Covid-19'\
A meme image shows: a man in a car with the caption, when you're in the car and you see in the car and superimposed text: recruit: why tf gotta wear my id tag and bring my FAD everywhere? BMT spec: IT'S THE LAW.\
The topics in this meme are: 'Military'\
A meme image shows: an asian man wearing glasses and a red tie in a microphone and superimposed text: IF TAN CHENG BOCK WAS MALAY THE PAP GOV WOULD'VE RESERVED THE PRESIDENTIAL ELECTION FOR INDIANS OR EURASIANS.\
The topics in this meme are: 'Racism','Politics'\
A meme image shows: a collage of images showing people on a bus in the video and superimposed text: TAKE MRT SCARED AUNTY SCREAM AT YOU TAKE BUS SCARED SOMEONE PUSH YOU OFF TAKE TAKI SCARED FERRARI RAM YOU TAKE BICYCLE SCARED KENNA LANGAH BY VAN.\
The topics in this meme are: 'Transportation'\
A meme image shows: a white container with food in it and a light bulb in the camera and superimposed text: Families living in four-room HDB flats can expect their average monthly bill to go down by S$3.89. Electricity tariff to fall 5.1% from April to June $3.89 SAVINGS? BARELY ENOUGHFOR CAI PNG.\
The topics in this meme are: 'Cost of Living','Housing'\
A meme image shows: a white container with food in it and a light bulb in the camera and superimposed text: Families living in four-room HDB flats can expect their average monthly bill to go down by S$3.89. Electricity tariff to fall 5.1% from April to June $3.89 SAVINGS? BARELY ENOUGHFOR CAI PNG.\
The topics in this meme are: 'Cost of Living','Housing'\
A meme image shows: a man is standing in front of a display of yellow ducks in a restaurant and superimposed text: Chicken rice stalls in Singapore on 1st June be looking like.\
The topics in this meme are: 'Food' """
group_examples: >
"""Given Topics:1. Military 2. Housing 3. Education 4.Technology 5.Entertainment 6.Healthcare\
and current topic : War , the most suitable topic from the given topics that corresponds to the current topic is Military"""
word_order_examples: >
"""For the topic : 'technology' and words : 1. singapore 2. tracetogether 3. computer 4. robot 5. google 6. cell 7.internet 8. airpods 9. electricity 10.video 11. ball \
12. tiktok 13. singapore 14. ns 15. iphone 16. officer 16. message \
the top 10 words are : 'computer','robot','google','iphone','airpods','internet','tracetogether','video','tiktok','message' \
For the topic : 'politics' and words: 1. police 2. says 3. pm 4. chinese 5.pap 6. lee 7.government 8. people 9. man 10. minister 11. force 12. swee \
13. heng 14. scdf 15. malay 16. prime 17. spf 18. president 19. keat 20. stop 21. wp 22.elections 23. gst 24. raeesah 25. govt 26. ns 27. malay \
the top 10 words related to the topic are: 'government','govt', 'pm', 'minister', 'pap', 'lee', 'president', 'keat', 'heng','wp' """
collect_template: >
"""A meme image shows: {caption} and has a superimposed text: {text}\
The topics in this meme are: """
group_template: "Given Topics:{topics} and current topic : {topic}, the most suitable topic from the given topics that corresponds to the current topic is"
word_order_template: "For the topic : {topic} and words : {words} the top 10 words related to the topic are"