Chan Lee commited on
Commit
0ed1e45
1 Parent(s): f5c3f76

changed descriptions of tasks

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -6,14 +6,15 @@ vs_examples = [
6
  ["In child protective services, further providing for definitions, for immunity from liability"],
7
  ["Lol what? Measles is a real thing. Get vaccinated"]]
8
  vs_title = "Vaccine Sentiment Task"
9
- vs_desc = "Enter vaccine-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The three provided examples have true labels 'vaccine critical', 'neutral', 'vaccine supportive' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the VS2 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
10
 
11
  hm_examples = [
12
  ["Serious as a heart attack question/thought Riddle me this. Why, oh why, does cold brew coffee get warm after sitting to long. Taste terrible. And Hot coffee get literally COLD after sitting too long. Tastes terrible. Like what. Why don't cold stay cold and hot only get warm?"],
13
  # ["It's odd how humans are considered predators when they have a heart attack and run like mad when a small insect is running straight towards them."],
14
- ["The older we get the less likely we are to view a sudden massive heart attack as a tragedy than a stroke of good luck."]]
 
15
  hm_title = "Health Mention Task"
16
- hm_desc = "Enter health-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'Figurative/Hyperbolic Health Mentions', 'Non-personal Health Mentions' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the RHMD dataset description in our paper (link provided in the corresponding Hugging Face repository)."
17
 
18
  dep_examples = [
19
  ["Nothing major, some underage drinking, a little pot, but I wasn't a bad kid. Furthermore, I feel like I matured well and have gone on to be successful for my age (24) IMO. I've also had positive experiences with police. The resource officer at my high school was a really good guy and almost like a mentor to me. When I was 17 I was arrested when police raided a friends house because they were tipped off that there was to be some under-aged drinking. Furthermore, I told him before we got really serious that I have anxiety and depression, and if he can’t handle that then I’ll understand if we end things. But *he* chose to stay with me and help me if I wanted it. Honestly I’m just tired of defending myself to him after this fight. I shouldn’t have to. And he kept threatening to break up; then why don’t you do it?"],
@@ -41,19 +42,19 @@ suicide_title = "Suicide Task"
41
  suicide_desc = "Enter Reddit posts to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The 5 labels represent increasing risk to sucide ideation (0='minimum risk', 4='maximum risk'). The three provided examples have true labels 1,2,4 respectively (NOTE: you may have to click submit again to generate the correct labels). For more details, please refer to the R-SSD dataset description in our paper (link provided in the corresponding Hugging Face repository)."
42
 
43
  stress_examples = [
44
- # ["I'm not massively worried about it at the moment because it feels good but my question is: Is this a normal symptom of PTSD and if it continues tomorrow, should I call 111 for medical advice? I'm home alone for the next few days, should I try and stay at a friends? Thank you! Edit: Thanks for the advice, I have got in touch with my doctor and they are going to give me a call later today. Hopefully I can get this sorted out soon!"],
45
  # ["My other brother is quite religious / catholic - not sure how this will impact how he reacts when he finds out. Also, my husband now finds it very very hard to be around my brother when my mom and him and his gf get together for family occasions. I don't find it totally difficult, because he's always been in my life and I've gotten so used to just burying it and forgetting about the abuse. But my husband, understandably, has a different perspective. He tries to stay 'strong' and act as 'normal' as possible when we get together so that no one thinks anything is 'wrong' or asks / puts us on the spot."],
46
  ["My daughter's father I was with for 5 years on and off. He was not abusive the first year, however when he became so I left and found out two weeks later I was pregnant. Of course he begged and pleaded for a second chance, and I believed that my daughter deserved me to at least give it a shot. I came back and surprise surprise it was worse than it ever was. I stuck it out until he disappeared for the eleventeenth time on a drunken bender, I checked my Facebook to find some scumbag girl who was dating one of his best friends was posting horrific, nasty, way out shit about me."]
47
  ]
48
  stress_title = "Stress Detection Task"
49
- stress_desc = "Enter Reddit posts to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The provided example has a true label of 'stress' (NOTE: you may have to click submit again to generate the correct label)."# For more details, please refer to the Dreaddit dataset description in our paper (link provided in the corresponding Hugging Face repository)."
50
 
51
  other_examples = [
52
  ["@anxietyfighter suffered social anxiety for 4 yrs when i had my first panic attack,got worse when i went to uni, so have just started paxil"],
53
  ["@JessBarrett227 Taking someone off 150mg off Seroquel, mixing it with Olanzapine in 2 wks causes psychosis - a proper assess was not done. "]
54
  ]
55
  other_title = "Adverse Drug Reaction Task"
56
- other_desc = "Enter drug-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'no adverse drug reaction', 'adverse drug reaction' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the SMM4H T1 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
57
 
58
  # def make_interfaces(folder):
59
  # predictor_bert = ktrain.load_predictor(folder + "bert")
 
6
  ["In child protective services, further providing for definitions, for immunity from liability"],
7
  ["Lol what? Measles is a real thing. Get vaccinated"]]
8
  vs_title = "Vaccine Sentiment Task"
9
+ vs_desc = "Enter text to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The three provided examples have true labels 'vaccine critical', 'neutral', 'vaccine supportive' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the VS2 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
10
 
11
  hm_examples = [
12
  ["Serious as a heart attack question/thought Riddle me this. Why, oh why, does cold brew coffee get warm after sitting to long. Taste terrible. And Hot coffee get literally COLD after sitting too long. Tastes terrible. Like what. Why don't cold stay cold and hot only get warm?"],
13
  # ["It's odd how humans are considered predators when they have a heart attack and run like mad when a small insect is running straight towards them."],
14
+ ["The older we get the less likely we are to view a sudden massive heart attack as a tragedy than a stroke of good luck."],
15
+ ["My son is not feeling well today."]]
16
  hm_title = "Health Mention Task"
17
+ hm_desc = "Enter text to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The three provided examples have true labels 'Figurative/Hyperbolic Health Mentions', 'Non-personal Health Mentions', 'Personal Health Mentions' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the RHMD dataset description in our paper (link provided in the corresponding Hugging Face repository)."
18
 
19
  dep_examples = [
20
  ["Nothing major, some underage drinking, a little pot, but I wasn't a bad kid. Furthermore, I feel like I matured well and have gone on to be successful for my age (24) IMO. I've also had positive experiences with police. The resource officer at my high school was a really good guy and almost like a mentor to me. When I was 17 I was arrested when police raided a friends house because they were tipped off that there was to be some under-aged drinking. Furthermore, I told him before we got really serious that I have anxiety and depression, and if he can’t handle that then I’ll understand if we end things. But *he* chose to stay with me and help me if I wanted it. Honestly I’m just tired of defending myself to him after this fight. I shouldn’t have to. And he kept threatening to break up; then why don’t you do it?"],
 
42
  suicide_desc = "Enter Reddit posts to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The 5 labels represent increasing risk to sucide ideation (0='minimum risk', 4='maximum risk'). The three provided examples have true labels 1,2,4 respectively (NOTE: you may have to click submit again to generate the correct labels). For more details, please refer to the R-SSD dataset description in our paper (link provided in the corresponding Hugging Face repository)."
43
 
44
  stress_examples = [
45
+ ["I'm not massively worried about it at the moment because it feels good."],
46
  # ["My other brother is quite religious / catholic - not sure how this will impact how he reacts when he finds out. Also, my husband now finds it very very hard to be around my brother when my mom and him and his gf get together for family occasions. I don't find it totally difficult, because he's always been in my life and I've gotten so used to just burying it and forgetting about the abuse. But my husband, understandably, has a different perspective. He tries to stay 'strong' and act as 'normal' as possible when we get together so that no one thinks anything is 'wrong' or asks / puts us on the spot."],
47
  ["My daughter's father I was with for 5 years on and off. He was not abusive the first year, however when he became so I left and found out two weeks later I was pregnant. Of course he begged and pleaded for a second chance, and I believed that my daughter deserved me to at least give it a shot. I came back and surprise surprise it was worse than it ever was. I stuck it out until he disappeared for the eleventeenth time on a drunken bender, I checked my Facebook to find some scumbag girl who was dating one of his best friends was posting horrific, nasty, way out shit about me."]
48
  ]
49
  stress_title = "Stress Detection Task"
50
+ stress_desc = "Enter text to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'no stress', 'stress' respectively (NOTE: you may have to click submit again to generate the correct label)."# For more details, please refer to the Dreaddit dataset description in our paper (link provided in the corresponding Hugging Face repository)."
51
 
52
  other_examples = [
53
  ["@anxietyfighter suffered social anxiety for 4 yrs when i had my first panic attack,got worse when i went to uni, so have just started paxil"],
54
  ["@JessBarrett227 Taking someone off 150mg off Seroquel, mixing it with Olanzapine in 2 wks causes psychosis - a proper assess was not done. "]
55
  ]
56
  other_title = "Adverse Drug Reaction Task"
57
+ other_desc = "Enter text to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'no adverse drug reaction', 'adverse drug reaction' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the SMM4H T1 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
58
 
59
  # def make_interfaces(folder):
60
  # predictor_bert = ktrain.load_predictor(folder + "bert")