gmustafa413 commited on
Commit
be6be7b
·
verified ·
1 Parent(s): aae06f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +144 -513
app.py CHANGED
@@ -4,607 +4,238 @@ from utils import T5Generator
4
 
5
  # Preprocessing function that modifies the user input.
6
  def preprocess_input(user_input):
7
- bos_instruction_id = """Definition: Given a sentence, extract all explicit and implicit aspects mentioned and classify their sentiment polarity as positive, negative, or neutral. If no aspects are present, respond with noaspectterm:none.
8
  Examples:
9
- 1. input: The battery life is amazing and the screen is crystal clear.
10
- output: battery life:positive, screen:positive
11
-
12
- 2. input: The receptionist was rude, but the room was clean.
13
- output: receptionist:negative, room:positive
14
-
15
- 3. input: This shirt fits well but the fabric feels cheap.
16
- output: fit:positive, fabric:negative
17
-
18
- 4. input: The plot of the book was a bit slow but very emotional.
19
- output: plot:negative, emotional content:positive
20
-
21
- 5. input: I just visited. No complaints, nothing to praise either.
22
- output: noaspectterm:none
23
-
24
- 6. input: The Wi-Fi in the hotel barely worked and the bathroom was dirty.
25
- output: Wi-Fi:negative, bathroom:negative
26
-
27
- 7. input: Their customer support team responded quickly and solved my problem.
28
- output: customer support:positive, response time:positive
29
-
30
- 8. input: I like the color and design, but the stitching came loose after one wash.
31
- output: color:positive, design:positive, stitching:negative
32
-
33
- 9. input: The professor explains concepts very clearly but gives very tough exams.
34
- output: explanations:positive, exams:negative
35
-
36
- 10. input: The application interface is clean and intuitive, but it crashes too often.
37
- output: interface:positive, usability:positive, stability:negative
38
-
39
- 11. input: The food was okay, but nothing stood out to me.
40
- output: food:neutral
41
-
42
- 12. input: My doctor was thorough and really took time to listen to me.
43
- output: doctor:positive, consultation:positive
44
-
45
- 13. input: I found the jeans to be a bit too tight around the thighs.
46
- output: fit:negative
47
-
48
- 14. input: The museum had a good collection, but the lighting was poor.
49
- output: collection:positive, lighting:negative
50
-
51
- 15. input: The speaker has good bass but lacks clarity at high volumes.
52
- output: bass:positive, clarity:negative
53
-
54
- 16. input: Parking was easy, but getting out took forever due to traffic.
55
- output: parking:positive, traffic:negative
56
-
57
- 17. input: The camera quality is excellent, though the battery drains fast.
58
- output: camera:positive, battery:negative
59
-
60
- 18. input: The new version of the app is faster and more responsive.
61
- output: performance:positive, responsiveness:positive
62
-
63
- 19. input: Her teaching style is engaging, but the slides were poorly organized.
64
- output: teaching style:positive, slides:negative
65
-
66
- 20. input: The wait time at the clinic was minimal and the staff was friendly.
67
- output: wait time:positive, staff:positive
68
-
69
- 21. input: The treadmill runs smoothly but makes a lot of noise.
70
- output: operation:positive, noise level:negative
71
-
72
- 22. input: The movie had stunning visuals but a very weak storyline.
73
- output: visuals:positive, storyline:negative
74
-
75
- 23. input: I appreciate the eco-friendly packaging.
76
- output: packaging:positive
77
-
78
- 24. input: The headphones are comfortable, but the mic quality is subpar.
79
- output: comfort:positive, mic quality:negative
80
-
81
- 25. input: Nothing really happened during the event, just some music.
82
- output: noaspectterm:none
83
-
84
- 26. input: The car handles well on curves, but the brakes are a bit slow.
85
- output: handling:positive, brakes:negative
86
-
87
- 27. input: I loved the presentation but couldn't understand the speaker.
88
- output: presentation:positive, speaker clarity:negative
89
-
90
- 28. input: The moisturizer absorbs quickly and doesn’t feel greasy.
91
- output: absorption:positive, texture:positive
92
-
93
- 29. input: Their refund process is extremely slow and unhelpful.
94
- output: refund process:negative
95
-
96
- 30. input: The instructions were clear, but the product didn’t match the description.
97
- output: instructions:positive, product accuracy:negative
98
-
99
- 31. input: The bank app is secure, but the UI needs improvement.
100
- output: security:positive, UI:negative
101
-
102
- 32. input: My lawyer was very professional and kept me informed throughout.
103
- output: professionalism:positive, communication:positive
104
-
105
- 33. input: The delivery was on time, but the packaging was damaged.
106
- output: delivery:positive, packaging:negative
107
-
108
- 34. input: My experience at the DMV was better than expected.
109
- output: service:positive
110
-
111
- 35. input: This watch looks stylish but feels flimsy.
112
- output: style:positive, build quality:negative
113
-
114
- 36. input: The online class had great content, but the audio kept cutting out.
115
- output: content:positive, audio quality:negative
116
-
117
- 37. input: The face cream smells amazing and leaves my skin soft.
118
- output: scent:positive, skin effect:positive
119
-
120
- 38. input: They charge hidden fees which weren’t mentioned earlier.
121
- output: hidden fees:negative, transparency:negative
122
-
123
- 39. input: The mobile keyboard is fast but autocorrect is terrible.
124
- output: typing speed:positive, autocorrect:negative
125
-
126
- 40. input: The pasta was undercooked and the sauce had no flavor.
127
- output: pasta:negative, sauce:negative
128
-
129
- 41. input: I like the initiative but the execution lacked detail.
130
- output: initiative:positive, execution:negative
131
-
132
- 42. input: The smartwatch pairs quickly and syncs notifications accurately.
133
- output: pairing:positive, syncing:positive
134
-
135
- 43. input: I couldn't book an appointment through the website.
136
- output: appointment booking:negative, website usability:negative
137
-
138
- 44. input: The loan application process was straightforward and fast.
139
- output: application process:positive, speed:positive
140
-
141
- 45. input: Their gym equipment is outdated but still functional.
142
- output: equipment condition:negative, functionality:positive
143
-
144
- 46. input: This documentary was informative and very well-paced.
145
- output: content:positive, pacing:positive
146
-
147
- 47. input: The taxi was late and the driver was rude.
148
- output: punctuality:negative, driver behavior:negative
149
-
150
- 48. input: I got exactly what I ordered and it arrived early.
151
- output: order accuracy:positive, delivery time:positive
152
-
153
- 49. input: The room service was prompt, but the food was cold.
154
- output: service speed:positive, food temperature:negative
155
-
156
- 50. input: The warranty period is short, but the coverage is good.
157
- output: warranty length:negative, coverage:positive
158
- 51. input: The gameplay is addictive but the graphics are outdated.
159
- output: gameplay:positive, graphics:negative
160
-
161
- 52. input: My real estate agent was knowledgeable and supportive.
162
- output: agent:positive, support:positive
163
-
164
- 53. input: The event started late and the seating was chaotic.
165
- output: start time:negative, seating:negative
166
-
167
- 54. input: The onboarding process for the software was seamless.
168
- output: onboarding:positive
169
-
170
- 55. input: Their customer retention strategy is weak.
171
- output: retention strategy:negative
172
-
173
- 56. input: The baby stroller is lightweight and easy to fold.
174
- output: weight:positive, foldability:positive
175
-
176
- 57. input: I found the weather app inaccurate and slow to update.
177
- output: accuracy:negative, update speed:negative
178
-
179
- 58. input: Their billing system is confusing and hard to navigate.
180
- output: billing:negative, usability:negative
181
 
182
- 59. input: The restaurant ambiance was cozy, and the staff were polite.
183
- output: ambiance:positive, staff:positive
184
 
185
- 60. input: The AI tool gave decent results but requires a lot of input tuning.
186
- output: output quality:neutral, usability:negative
187
 
188
- 61. input: The headphones come with multiple ear tips, which is nice.
189
- output: accessories:positive
190
 
191
- 62. input: My therapist listens well but frequently cancels appointments.
192
- output: listening:positive, availability:negative
193
 
194
- 63. input: This vacuum cleaner is powerful but way too noisy.
195
- output: suction power:positive, noise:negative
196
 
197
- 64. input: The SEO audit report was detailed and easy to understand.
198
- output: report detail:positive, readability:positive
199
 
200
- 65. input: They rarely reply to emails and when they do, it's vague.
201
- output: communication speed:negative, clarity:negative
202
 
203
- 66. input: The clothing fits well and the stitching is strong.
204
- output: fit:positive, stitching:positive
205
 
206
- 67. input: My internet keeps dropping during meetings.
207
- output: internet connection:negative
208
 
209
- 68. input: The CRM tool integrates well with Gmail but not with Slack.
210
- output: Gmail integration:positive, Slack integration:negative
211
 
212
- 69. input: I like the notifications, but I hate the default alarm sound.
213
- output: notifications:positive, alarm sound:negative
214
 
215
- 70. input: The teacher provides individual feedback and great resources.
216
- output: feedback:positive, resources:positive
217
 
218
- 71. input: The light sensor is too sensitive in daylight.
219
- output: light sensor:negative
220
 
221
- 72. input: The location is great, but the apartment has plumbing issues.
222
- output: location:positive, plumbing:negative
223
 
224
- 73. input: Their refund policy is very fair.
225
- output: refund policy:positive
226
 
227
- 74. input: The mobile game crashes too often.
228
- output: stability:negative
229
 
230
- 75. input: The salad was fresh but lacked seasoning.
231
- output: freshness:positive, seasoning:negative
232
 
233
- 76. input: The team was responsive but the final deliverable was rushed.
234
- output: responsiveness:positive, delivery quality:negative
235
 
236
- 77. input: I didn’t enjoy the museum tour guide's tone.
237
- output: guide tone:negative
238
 
239
- 78. input: My rental car had Bluetooth and rear cameras.
240
- output: Bluetooth:positive, rear cameras:positive
241
 
242
- 79. input: The fragrance lasts long and doesn’t feel overpowering.
243
- output: longevity:positive, intensity:positive
244
 
245
- 80. input: The event app kept freezing on my phone.
246
- output: app stability:negative
247
 
248
- 81. input: The laptop is fast but heats up quickly.
249
- output: performance:positive, temperature:negative
250
 
251
- 82. input: They delivered my mattress two days late.
252
- output: delivery time:negative
253
 
254
- 83. input: The hotel has a beautiful rooftop view.
255
- output: rooftop view:positive
256
 
257
- 84. input: The support chat was robotic and unhelpful.
258
- output: support chat:negative
259
 
260
- 85. input: The conference had great content but poor sound setup.
261
- output: content:positive, sound system:negative
262
 
263
- 86. input: The skin cream caused irritation on my face.
264
- output: skin reaction:negative
265
 
266
- 87. input: I like that the gym is open 24/7.
267
- output: hours of operation:positive
268
 
269
- 88. input: The mobile browser is sleek but lacks ad blocking.
270
- output: design:positive, features:negative
271
 
272
- 89. input: I enjoyed the course structure and hands-on projects.
273
- output: course structure:positive, hands-on projects:positive
274
 
275
- 90. input: The recipe was easy to follow and tasted amazing.
276
- output: instructions:positive, taste:positive
277
 
278
- 91. input: The air purifier makes a weird humming noise.
279
- output: noise:negative
280
 
281
- 92. input: The policy renewal steps were very complicated.
282
- output: renewal process:negative
283
 
284
- 93. input: I hate the dating app interface, but the matching algorithm is smart.
285
- output: interface:negative, matching:positive
286
 
287
- 94. input: The coffee was strong, just the way I like it.
288
- output: taste:positive
289
 
290
- 95. input: I got free shipping and a 20% discount.
291
- output: shipping:positive, pricing:positive
292
 
293
- 96. input: Their analytics dashboard is buggy.
294
- output: dashboard:negative
295
 
296
- 97. input: The line at the ticket counter was incredibly long.
297
- output: queue time:negative
298
 
299
- 98. input: The sales rep was friendly and knew her product well.
300
- output: friendliness:positive, product knowledge:positive
301
 
302
- 99. input: The electric toothbrush cleans well but the battery drains fast.
303
- output: cleaning performance:positive, battery life:negative
304
 
305
- 100. input: The train was comfortable and arrived on time.
306
- output: comfort:positive, punctuality:positive
307
- 101. input: The hospital staff were attentive, but the wait time was awful.
308
- output: staff:positive, wait time:negative
309
 
310
- 102. input: I love the camera quality, but it lags when switching modes.
311
- output: camera:positive, speed:negative
312
 
313
- 103. input: The onboarding guide was useful and well-organized.
314
- output: guide:positive, organization:positive
315
 
316
- 104. input: This bag is stylish, but the strap broke in a week.
317
- output: design:positive, durability:negative
318
 
319
- 105. input: Their customer service team is polite and helpful.
320
- output: customer service:positive
321
 
322
- 106. input: The newsletter is informative, but the layout is cluttered.
323
- output: content:positive, layout:negative
324
 
325
- 107. input: I had trouble syncing the smart bulb to my Wi-Fi.
326
- output: connectivity:negative
327
 
328
- 108. input: The treadmill is sturdy, but the display is hard to read.
329
- output: build quality:positive, display:negative
330
 
331
- 109. input: The therapist was empathetic and understanding.
332
- output: empathy:positive, understanding:positive
333
 
334
- 110. input: The form fields are not labeled correctly on mobile.
335
- output: mobile layout:negative
336
 
337
- 111. input: The course content is deep, but the quizzes are too easy.
338
- output: content depth:positive, quiz difficulty:negative
339
 
340
- 112. input: I love the bass in these headphones.
341
- output: bass:positive
342
 
343
- 113. input: The office lighting is too harsh for long workdays.
344
- output: lighting:negative
345
 
346
- 114. input: Their packaging is eco-friendly and easy to open.
347
- output: sustainability:positive, accessibility:positive
348
 
349
- 115. input: The doctor explained everything in detail.
350
- output: explanation:positive
351
 
352
- 116. input: The playground is spacious, but there's no shade.
353
- output: space:positive, shade:negative
354
 
355
- 117. input: I appreciate the fast shipping and quality packaging.
356
- output: shipping:positive, packaging:positive
357
 
358
- 118. input: The app navigation is confusing.
359
- output: navigation:negative
360
 
361
- 119. input: The instructor gave prompt feedback and was engaging.
362
- output: feedback:positive, engagement:positive
363
 
364
- 120. input: The pillows are too firm for me.
365
- output: firmness:negative
366
 
367
- 121. input: The email support team fixed my issue quickly.
368
- output: email support:positive
369
 
370
- 122. input: The language in the terms is hard to understand.
371
- output: clarity:negative
372
 
373
- 123. input: The commute from this apartment is super convenient.
374
- output: commute:positive
375
 
376
- 124. input: The toy is colorful but has sharp edges.
377
- output: color:positive, safety:negative
378
 
379
- 125. input: The stock app loads slowly but has real-time data.
380
- output: speed:negative, data accuracy:positive
381
 
382
- 126. input: The payment process is smooth and secure.
383
- output: process:positive, security:positive
384
 
385
- 127. input: The dog food caused an allergic reaction.
386
- output: food safety:negative
387
 
388
- 128. input: The support rep was friendly but untrained.
389
- output: friendliness:positive, expertise:negative
390
 
391
- 129. input: The air conditioning doesn’t cool the room evenly.
392
- output: cooling:negative
393
 
394
- 130. input: Their finance reports are detailed and visual.
395
- output: reporting:positive, visuals:positive
396
 
397
- 131. input: The sunscreen is lightweight and not greasy.
398
- output: weight:positive, texture:positive
399
 
400
- 132. input: The streaming app buffers too frequently.
401
- output: buffering:negative
402
 
403
- 133. input: The welcome kit was missing a few items.
404
- output: kit completeness:negative
405
 
406
- 134. input: The tour guide was enthusiastic but hard to understand.
407
- output: enthusiasm:positive, clarity:negative
408
-
409
- 135. input: The user community is active and supportive.
410
- output: community:positive
411
-
412
- 136. input: The flight was delayed and the staff were unhelpful.
413
- output: delay:negative, staff support:negative
414
-
415
- 137. input: The table is beautiful, but the legs are uneven.
416
- output: design:positive, stability:negative
417
-
418
- 138. input: The VPN speed is impressive and doesn’t drop.
419
- output: speed:positive, stability:positive
420
-
421
- 139. input: The graphics are stunning, but the controls are clunky.
422
- output: visuals:positive, controls:negative
423
-
424
- 140. input: The subscription is too expensive for what it offers.
425
- output: pricing:negative, value:negative
426
-
427
- 141. input: The API documentation is outdated and hard to follow.
428
- output: documentation:negative
429
-
430
- 142. input: The theater seats are plush and spacious.
431
- output: comfort:positive, space:positive
432
-
433
- 143. input: The hairdryer is fast but too loud.
434
- output: speed:positive, noise:negative
435
-
436
- 144. input: The chatbot answered my questions accurately.
437
- output: chatbot accuracy:positive
438
-
439
- 145. input: I loved the museum's layout and lighting.
440
- output: layout:positive, lighting:positive
441
-
442
- 146. input: The delivery van blocked my driveway.
443
- output: delivery conduct:negative
444
-
445
- 147. input: The ergonomic mouse reduced my wrist pain.
446
- output: ergonomics:positive, comfort:positive
447
-
448
- 148. input: The online portal crashes often during login.
449
- output: stability:negative
450
-
451
- 149. input: The skincare routine is easy to follow.
452
- output: usability:positive
453
-
454
- 150. input: The coffee shop has fast Wi-Fi and comfy chairs.
455
- output: Wi-Fi:positive, seating:positive
456
-
457
- 151. input: The charger cable frayed after a month.
458
- output: durability:negative
459
-
460
- 152. input: The robot vacuum maps rooms very well.
461
- output: mapping:positive
462
-
463
- 153. input: The trash can has a smart sensor but the lid sticks.
464
- output: technology:positive, lid quality:negative
465
-
466
- 154. input: The game has frequent updates and bug fixes.
467
- output: maintenance:positive
468
-
469
- 155. input: The microphone has crisp audio and low background noise.
470
- output: audio:positive, noise suppression:positive
471
-
472
- 156. input: The city is lively but the pollution is unbearable.
473
- output: atmosphere:positive, pollution:negative
474
-
475
- 157. input: Their product recommendation engine is spot-on.
476
- output: recommendations:positive
477
-
478
- 158. input: The printer jams too often.
479
- output: reliability:negative
480
-
481
- 159. input: The parking lot has tight spaces and bad lighting.
482
- output: space:negative, lighting:negative
483
-
484
- 160. input: The bakery has fresh bread daily.
485
- output: freshness:positive
486
-
487
- 161. input: The influencer's reviews are honest and detailed.
488
- output: honesty:positive, detail:positive
489
-
490
- 162. input: The phone overheats during calls.
491
- output: temperature:negative
492
-
493
- 163. input: The water bottle keeps drinks cold for hours.
494
- output: insulation:positive
495
-
496
- 164. input: The campsite had clean bathrooms and friendly staff.
497
- output: cleanliness:positive, staff:positive
498
-
499
- 165. input: The user interface is modern but slow.
500
- output: design:positive, performance:negative
501
-
502
- 166. input: The delivery tracking is inaccurate.
503
- output: tracking:negative
504
-
505
- 167. input: The smart speaker understands accents well.
506
- output: recognition:positive
507
-
508
- 168. input: The cooking class was interactive and fun.
509
- output: interaction:positive, experience:positive
510
-
511
- 169. input: The curtains block out sunlight completely.
512
- output: light blocking:positive
513
-
514
- 170. input: The wearable is lightweight but scratches easily.
515
- output: weight:positive, durability:negative
516
-
517
- 171. input: The fire alarm is too sensitive.
518
- output: sensitivity:negative
519
-
520
- 172. input: The voice assistant responds fast.
521
- output: response time:positive
522
-
523
- 173. input: The pool water was dirty.
524
- output: cleanliness:negative
525
-
526
- 174. input: The eBook is affordable and well-written.
527
- output: price:positive, writing:positive
528
-
529
- 175. input: The customer portal is intuitive.
530
- output: usability:positive
531
-
532
- 176. input: The jacket is warm but sheds lint.
533
- output: insulation:positive, lint shedding:negative
534
-
535
- 177. input: The studio apartment is compact but cozy.
536
- output: size:neutral, comfort:positive
537
-
538
- 178. input: The email notifications are too frequent.
539
- output: frequency:negative
540
-
541
- 179. input: The zoo has good signage and maps.
542
- output: signage:positive, navigation aids:positive
543
-
544
- 180. input: The facial cleanser dried out my skin.
545
- output: skin impact:negative
546
-
547
- 181. input: The refund was processed in two days.
548
- output: refund speed:positive
549
-
550
- 182. input: The concert lighting was amazing.
551
- output: lighting:positive
552
-
553
- 183. input: The shampoo smells great and leaves hair soft.
554
- output: scent:positive, effect:positive
555
-
556
- 184. input: The refund page is hard to find.
557
- output: navigation:negative
558
-
559
- 185. input: The crypto wallet app lacks 2FA.
560
- output: security features:negative
561
-
562
- 186. input: The gloves are waterproof and breathable.
563
- output: waterproofing:positive, comfort:positive
564
-
565
- 187. input: The heater makes clicking noises.
566
- output: noise:negative
567
-
568
- 188. input: The translation was mostly accurate.
569
- output: accuracy:positive
570
 
571
- 189. input: The kids' section is very engaging.
572
- output: engagement:positive
573
 
574
- 190. input: The virtual assistant often misunderstands.
575
- output: recognition:negative
576
 
577
- 191. input: The plant arrived fresh and well-packaged.
578
- output: freshness:positive, packaging:positive
579
 
580
- 192. input: The gym doesn’t have enough squat racks.
581
- output: equipment availability:negative
582
 
583
- 193. input: The online form auto-fills correctly.
584
- output: autofill:positive
585
 
586
- 194. input: The bracelet clasp broke after a day.
587
- output: durability:negative
588
 
589
- 195. input: The smart thermostat saved me money.
590
- output: efficiency:positive
591
 
592
- 196. input: The tutorial videos are concise and helpful.
593
- output: clarity:positive, helpfulness:positive
594
 
595
- 197. input: The elevator stops too frequently.
596
- output: frequency:negative
597
 
598
- 198. input: The fridge compartments are adjustable.
599
- output: flexibility:positive
600
 
601
- 199. input: The grocery app offers timely delivery.
602
- output: delivery time:positive
 
 
 
603
 
604
- 200. input: The fabric is soft but wrinkles easily.
605
- output: texture:positive, wrinkle resistance:negative
606
-
607
- Find many aspects in a review, for every aspect you have to tell that it is nagitive or possitive. Now complete the following example-
608
  input: """
609
  eos_instruction = ' \noutput:'
610
  # Append and prepend the text to the user's input.
 
4
 
5
  # Preprocessing function that modifies the user input.
6
  def preprocess_input(user_input):
7
+ bos_instruction_id = """Definition: The output will be the aspects (both implicit and explicit) and the aspect's sentiment polarity. In cases where there are no aspects the output should be noaspectterm:none.
8
  Examples:
9
+ 1.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
+ input: The hotel was beautiful, with friendly staff and a delicious breakfast buffet. However, the Wi-Fi was slow, the bathroom wasn't clean, and the room had a weird smell.
12
+ output: hotel\:positive, staff\:positive, breakfast buffet\:positive, Wi-Fi\:negative, bathroom\:negative, room smell\:negative
13
 
14
+ 2.
 
15
 
16
+ input: This coat looks stylish and fits perfectly. The fabric feels high-quality, and the color is vibrant. But the buttons fall off easily, and it's not warm enough for winter.
17
+ output: style\:positive, fit\:positive, fabric\:positive, color\:positive, buttons\:negative, warmth\:negative
18
 
19
+ 3.
 
20
 
21
+ input: The online course was affordable and the instructor explained topics clearly. However, the video quality was poor, the quizzes were too simple, and the pacing was inconsistent.
22
+ output: cost\:positive, instructor clarity\:positive, video quality\:negative, quizzes\:negative, pacing\:negative
23
 
24
+ 4.
 
25
 
26
+ input: My experience with this bank has been mostly good. The mobile app is user-friendly, staff are polite, and transactions are smooth. But the customer support takes too long to respond, and hidden fees are frustrating.
27
+ output: mobile app\:positive, staff\:positive, transactions\:positive, customer support\:negative, hidden fees\:negative
28
 
29
+ 5.
 
30
 
31
+ input: I enjoyed the plot and the character development in this novel. The writing style was smooth, and the dialogue felt real. But the ending was disappointing and the pacing was uneven in the middle chapters.
32
+ output: plot\:positive, character development\:positive, writing style\:positive, dialogue\:positive, ending\:negative, pacing\:negative
33
 
34
+ 6.
 
35
 
36
+ input: The doctor was kind and explained everything well. The clinic was clean, and the staff was professional. But the waiting time was too long, and I felt rushed during the consultation.
37
+ output: doctor\:positive, clinic cleanliness\:positive, staff professionalism\:positive, waiting time\:negative, consultation time\:negative
38
 
39
+ 7.
 
40
 
41
+ input: The sound quality of these headphones is amazing, and the battery lasts long. The design is sleek, and the noise cancellation works well. But they’re uncomfortable after long use and overpriced.
42
+ output: sound quality\:positive, battery life\:positive, design\:positive, noise cancellation\:positive, comfort\:negative, price\:negative
43
 
44
+ 8.
 
45
 
46
+ input: This vacuum cleaner has strong suction power and is easy to maneuver. It’s lightweight and the attachments are useful. However, it's very loud and the dustbin fills up quickly.
47
+ output: suction power\:positive, maneuverability\:positive, weight\:positive, attachments\:positive, noise\:negative, dustbin size\:negative
48
 
49
+ 9.
 
50
 
51
+ input: The recipe was easy to follow, and the dish turned out flavorful. The ingredients were accessible, and the cooking time was just right. But the portion size was small and cleanup took a while.
52
+ output: instructions\:positive, taste\:positive, ingredients\:positive, cooking time\:positive, portion size\:negative, cleanup\:negative
53
 
54
+ 10.
 
55
 
56
+ input: This gym is well-equipped and spacious. The trainers are knowledgeable and the membership is reasonably priced. However, the showers are often dirty and there’s limited parking.
57
+ output: equipment\:positive, space\:positive, trainers\:positive, price\:positive, showers\:negative, parking\:negative
58
 
59
+ 11.
 
60
 
61
+ input: The flight was on time, and the in-flight entertainment was great. Seats were clean and staff were courteous. But the legroom was terrible and the food was tasteless.
62
+ output: punctuality\:positive, entertainment\:positive, cleanliness\:positive, staff\:positive, legroom\:negative, food\:negative
63
 
64
+ 12.
 
65
 
66
+ input: The mobile phone's camera is sharp, the screen is vibrant, and the battery life is impressive. However, the device heats up quickly and the UI is cluttered.
67
+ output: camera\:positive, screen\:positive, battery\:positive, heating\:negative, UI\:negative
68
 
69
+ 13.
 
70
 
71
+ input: The tour guide was informative, and the destinations were breathtaking. The transportation was comfortable and well organized. But meals were mediocre and the schedule was too packed.
72
+ output: guide\:positive, destinations\:positive, transportation\:positive, meals\:negative, schedule\:negative
73
 
74
+ 14.
 
75
 
76
+ input: The jeans fit perfectly, are very comfortable, and the material feels premium. However, the dye runs in the wash and delivery took too long.
77
+ output: fit\:positive, comfort\:positive, material\:positive, dye quality\:negative, delivery\:negative
78
 
79
+ 15.
 
80
 
81
+ input: This smartwatch tracks fitness accurately, has a responsive touch screen, and looks stylish. But syncing with the phone is inconsistent and charging takes too long.
82
+ output: fitness tracking\:positive, touchscreen\:positive, design\:positive, syncing\:negative, charging\:negative
83
 
84
+ 16.
 
85
 
86
+ input: The therapist was compassionate and helpful. Sessions were structured and impactful. However, the cost was high, and appointment availability was limited.
87
+ output: therapist\:positive, session structure\:positive, impact\:positive, cost\:negative, appointment availability\:negative
88
 
89
+ 17.
 
90
 
91
+ input: The gaming console runs smoothly and the graphics are top-notch. The game library is vast, and loading times are short. But the controllers feel cheap and it's very bulky.
92
+ output: performance\:positive, graphics\:positive, game library\:positive, loading time\:positive, controller quality\:negative, size\:negative
93
 
94
+ 18.
 
95
 
96
+ input: This online store has a great variety of products and fast delivery. Prices are competitive and the website is easy to navigate. But the return process is tedious and customer support is unhelpful.
97
+ output: product variety\:positive, delivery\:positive, pricing\:positive, website UX\:positive, return process\:negative, customer support\:negative
98
 
99
+ 19.
 
100
 
101
+ input: The air conditioner cools quickly, has a quiet mode, and looks modern. But the installation service was poor and the remote is hard to use.
102
+ output: cooling\:positive, noise\:positive, design\:positive, installation\:negative, remote\:negative
103
 
104
+ 20.
 
105
 
106
+ input: The blender is powerful, easy to clean, and comes with useful attachments. But it's very noisy and the lid is hard to remove.
107
+ output: power\:positive, cleaning\:positive, attachments\:positive, noise\:negative, lid\:negative
108
 
109
+ 21.
 
110
 
111
+ input: The drama had amazing cinematography and a compelling storyline. The acting was strong and the soundtrack was fitting. But the pacing was off and the ending felt rushed.
112
+ output: cinematography\:positive, storyline\:positive, acting\:positive, soundtrack\:positive, pacing\:negative, ending\:negative
113
 
114
+ 22.
 
 
 
115
 
116
+ input: The mattress is very comfortable and supports my back well. It’s breathable and has no chemical smell. However, delivery was delayed and the warranty terms are confusing.
117
+ output: comfort\:positive, support\:positive, breathability\:positive, smell\:positive, delivery\:negative, warranty\:negative
118
 
119
+ 23.
 
120
 
121
+ input: The mobile app is intuitive and has many features. Login is quick and data syncs well. However, it crashes often and has annoying ads.
122
+ output: usability\:positive, features\:positive, login\:positive, sync\:positive, stability\:negative, ads\:negative
123
 
124
+ 24.
 
125
 
126
+ input: The watch looks elegant, keeps time perfectly, and feels solid. But the strap is uncomfortable and it scratches too easily.
127
+ output: design\:positive, accuracy\:positive, build\:positive, strap comfort\:negative, durability\:negative
128
 
129
+ 25.
 
130
 
131
+ input: The refrigerator is spacious and energy-efficient. It’s quiet and cools evenly. But the freezer section is small and the shelves feel flimsy.
132
+ output: capacity\:positive, efficiency\:positive, noise\:positive, cooling\:positive, freezer\:negative, shelf quality\:negative
133
 
134
+ 26.
 
135
 
136
+ input: The coffee maker brews quickly and the coffee is hot. The design is sleek, and it's easy to clean. However, it leaks when brewing and is louder than expected.
137
+ output: brewing time\:positive, coffee temperature\:positive, design\:positive, cleaning\:positive, leakage\:negative, noise\:negative
138
 
139
+ 27.
 
140
 
141
+ input: The sports shoes are comfortable, durable, and stylish. The grip is excellent, and they are lightweight. But the stitching came undone after a few uses, and the price is too high.
142
+ output: comfort\:positive, durability\:positive, style\:positive, grip\:positive, stitching\:negative, price\:negative
143
 
144
+ 28.
 
145
 
146
+ input: The smartwatch tracks steps accurately and has a great battery life. It's sleek and easy to use. But the heart rate monitor is inaccurate and the band is uncomfortable.
147
+ output: step tracking\:positive, battery life\:positive, design\:positive, ease of use\:positive, heart rate monitor\:negative, band comfort\:negative
148
 
149
+ 29.
 
150
 
151
+ input: The pizza crust was crispy, and the toppings were fresh. The sauce was flavorful, and the cheese was perfectly melted. However, it was too greasy and the delivery was late.
152
+ output: crust\:positive, toppings\:positive, sauce\:positive, cheese\:positive, grease\:negative, delivery time\:negative
153
 
154
+ 30.
 
155
 
156
+ input: The tablet has a sharp display and the interface is responsive. It’s lightweight and portable. But the battery drains too quickly, and the camera quality is poor.
157
+ output: display\:positive, interface\:positive, portability\:positive, battery life\:negative, camera\:negative
158
 
159
+ 31.
 
160
 
161
+ input: The hotel room had a great view and was spacious. The bed was comfortable, and the bathroom was well-equipped. However, the room service was slow, and the TV had limited channels.
162
+ output: view\:positive, space\:positive, bed\:positive, bathroom\:positive, room service\:negative, TV channels\:negative
163
 
164
+ 32.
 
165
 
166
+ input: The coffee shop has a cozy atmosphere and friendly staff. The coffee was great, and the pastries were fresh. However, the seating was uncomfortable and the place was too noisy.
167
+ output: atmosphere\:positive, staff\:positive, coffee\:positive, pastries\:positive, seating\:negative, noise\:negative
168
 
169
+ 33.
 
170
 
171
+ input: The museum had a variety of exhibits and was well-maintained. The staff was informative, and the layout was easy to navigate. However, the entrance fee was too high, and the gift shop had limited items.
172
+ output: exhibits\:positive, maintenance\:positive, staff\:positive, layout\:positive, entrance fee\:negative, gift shop\:negative
173
 
174
+ 34.
 
175
 
176
+ input: The restaurant's ambiance was elegant, and the staff was attentive. The appetizers were great, and the main course was delicious. However, the portions were small, and the dessert was disappointing.
177
+ output: ambiance\:positive, staff\:positive, appetizers\:positive, main course\:positive, portion size\:negative, dessert\:negative
178
 
179
+ 35.
 
180
 
181
+ input: The online customer support was quick and efficient. The website was easy to navigate, and the checkout process was smooth. However, the product packaging was damaged, and the shipping took longer than expected.
182
+ output: customer support\:positive, website\:positive, checkout\:positive, packaging\:negative, shipping\:negative
183
 
184
+ 36.
 
185
 
186
+ input: The book was an interesting read, with great character development and a unique storyline. However, the pacing was slow, and the ending was predictable.
187
+ output: character development\:positive, storyline\:positive, pacing\:negative, ending\:negative
188
 
189
+ 37.
 
190
 
191
+ input: The video game has great graphics and a compelling story. The gameplay mechanics are smooth, and the sound design is immersive. However, there are frequent bugs, and the loading time is long.
192
+ output: graphics\:positive, story\:positive, gameplay\:positive, sound design\:positive, bugs\:negative, loading time\:negative
193
 
194
+ 38.
 
195
 
196
+ input: The skincare product is gentle on my skin and leaves it feeling smooth. The scent is pleasant
197
+
198
+ 38. input: The battery life is amazing and the screen is crystal clear.
199
+ output: battery life:positive, screen:positive
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
 
201
+ 40. input: The receptionist was rude, but the room was clean.
202
+ output: receptionist:negative, room:positive
203
 
204
+ 41. input: This shirt fits well but the fabric feels cheap.
205
+ output: fit:positive, fabric:negative
206
 
207
+ 42. input: The plot of the book was a bit slow but very emotional.
208
+ output: plot:negative, emotional content:positive
209
 
210
+ 43. input: The Wi-Fi in the hotel barely worked and the bathroom was dirty.
211
+ output: Wi-Fi:negative, bathroom:negative
212
 
213
+ 44. input: Their customer support team responded quickly and solved my problem.
214
+ output: customer support:positive, response time:positive
215
 
216
+ 45. input: I like the color and design, but the stitching came loose after one wash.
217
+ output: color:positive, design:positive, stitching:negative
218
 
219
+ 46. input: The professor explains concepts very clearly but gives very tough exams.
220
+ output: explanations:positive, exams:negative
221
 
222
+ 47. input: The application interface is clean and intuitive, but it crashes too often.
223
+ output: interface:positive, usability:positive, stability:negative
224
 
225
+ 48. input: The museum had a good collection, but the lighting was poor.
226
+ output: collection:positive, lighting:negative
227
 
228
+ 49. input: The speaker has good bass but lacks clarity at high volumes.
229
+ output: bass:positive, clarity:negative
230
 
231
+ 50. input: Parking was easy, but getting out took forever due to traffic.
232
+ output: parking:positive, traffic:negative
233
+
234
+ 51. input: The gameplay is addictive but the graphics are outdated.
235
+ output: gameplay:positive, graphics:negative
236
 
237
+
238
+ Now complete the following example-
 
 
239
  input: """
240
  eos_instruction = ' \noutput:'
241
  # Append and prepend the text to the user's input.