lynn-twinkl
commited on
Commit
·
a87c3ff
1
Parent(s):
4429193
Added more words to lexicon, changed weights for severity markers
Browse files
functions/necessity_index.py
CHANGED
|
@@ -4,7 +4,8 @@ import re
|
|
| 4 |
# ---------------- MARKERS ----------------
|
| 5 |
|
| 6 |
LEXICON = {
|
| 7 |
-
"urgency_markers": [
|
|
|
|
| 8 |
"difficulties", "crisis", "immediate", "critical", "necessary",
|
| 9 |
"essential", "dire", "catastrophe"
|
| 10 |
],
|
|
@@ -19,13 +20,15 @@ LEXICON = {
|
|
| 19 |
"fragile", "risk", "sen", 'adhd','add','dyslexia', 'trans', 'queer',
|
| 20 |
'lgbtq', 'refugee', 'refugees', 'autism', 'autisitc', 'neurodivergent',
|
| 21 |
'low income', "poverty", "deprived", "poor", "disadvantaged", 'underserved',
|
| 22 |
-
'therapy', 'therapeutic', "aln", "semh", 'violence'
|
|
|
|
| 23 |
],
|
| 24 |
"emotional_appeal": [
|
| 25 |
"help", "support", "deserve", "hope", "lives", "transform",
|
| 26 |
"improve", "amazing", "difference", "dream", "opportunity",
|
| 27 |
"empower", "nurture", "change", "impact", "grateful", "please",
|
| 28 |
-
"!", 'passion', 'passionate', '
|
|
|
|
| 29 |
],
|
| 30 |
"superlatives": [
|
| 31 |
"most", "every", "all", "huge", "massive", "dramatically",
|
|
@@ -38,8 +41,8 @@ LEXICON = {
|
|
| 38 |
# --------------- WEIGHTS --------------
|
| 39 |
|
| 40 |
WEIGHTS = {
|
| 41 |
-
'urgency_markers':
|
| 42 |
-
'severity_markers': 2.
|
| 43 |
'vulnerability_markers': 3,
|
| 44 |
'emotional_appeal': 1.5,
|
| 45 |
'superlatives': 1.0
|
|
|
|
| 4 |
# ---------------- MARKERS ----------------
|
| 5 |
|
| 6 |
LEXICON = {
|
| 7 |
+
"urgency_markers": [
|
| 8 |
+
"urgent", "need", "shortage", "emergency", "limited",
|
| 9 |
"difficulties", "crisis", "immediate", "critical", "necessary",
|
| 10 |
"essential", "dire", "catastrophe"
|
| 11 |
],
|
|
|
|
| 20 |
"fragile", "risk", "sen", 'adhd','add','dyslexia', 'trans', 'queer',
|
| 21 |
'lgbtq', 'refugee', 'refugees', 'autism', 'autisitc', 'neurodivergent',
|
| 22 |
'low income', "poverty", "deprived", "poor", "disadvantaged", 'underserved',
|
| 23 |
+
'therapy', 'therapeutic', "aln", "semh", 'violence', 'mental health', 'depressed',
|
| 24 |
+
'anxious', 'anxiety', 'ill', 'sick'
|
| 25 |
],
|
| 26 |
"emotional_appeal": [
|
| 27 |
"help", "support", "deserve", "hope", "lives", "transform",
|
| 28 |
"improve", "amazing", "difference", "dream", "opportunity",
|
| 29 |
"empower", "nurture", "change", "impact", "grateful", "please",
|
| 30 |
+
"!", 'passion', 'passionate', 'committed', 'life-changing',
|
| 31 |
+
'thank you', 'thankful'
|
| 32 |
],
|
| 33 |
"superlatives": [
|
| 34 |
"most", "every", "all", "huge", "massive", "dramatically",
|
|
|
|
| 41 |
# --------------- WEIGHTS --------------
|
| 42 |
|
| 43 |
WEIGHTS = {
|
| 44 |
+
'urgency_markers': 3,
|
| 45 |
+
'severity_markers': 2.5,
|
| 46 |
'vulnerability_markers': 3,
|
| 47 |
'emotional_appeal': 1.5,
|
| 48 |
'superlatives': 1.0
|