File size: 1,442 Bytes
3ddf306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
tweet_generator_prompt = """
ideology: '{ideology}', pro entities: {pro_entities}, anti entities: {anti_entities}, 
neutral entities: {neutral_entities} based on following aspects pro aspects: {pro_aspects}, 
anti aspects: {anti_aspects}, neutral aspects: {neutral_aspects}
"""

absa_prompt = """
Definition: The output will be the aspects (both implicit and explicit) and the aspects sentiment polarity. 
In cases where there are no aspects the output should be noaspectterm:none.

    Positive example 1-
    input: I charge it at night and skip taking the cord with me because of the good battery life.
    output: battery life:positive, 
    Positive example 2-
    input: I even got my teenage son one, because of the features that it offers, like, iChat, Photobooth, garage band and more!.
    output: features:positive, iChat:positive, Photobooth:positive, garage band:positive
    Negative example 1-
    input: Speaking of the browser, it too has problems.
    output: browser:negative
    Negative example 2-
    input: The keyboard is too slick.
    output: keyboard:negative
    Neutral example 1-
    input: I took it back for an Asus and same thing- blue screen which required me to remove the battery to reset.
    output: battery:neutral
    Neutral example 2-
    input: Nightly my computer defrags itself and runs a virus scan.
    output: virus scan:neutral
    Now complete the following example-
    {generated_tweet}
"""