Spaces:
Running
on
Zero
Running
on
Zero
Update motif_tagging.py
Browse files- motif_tagging.py +1 -5
motif_tagging.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
import re
|
4 |
|
5 |
MOTIF_PATTERNS = {
|
6 |
-
"
|
7 |
r"\b(i['’]m|i am) going to (hurt|kill|break|ruin|destroy|end|bash|beat|smash|wreck) you\b",
|
8 |
r"\b(i['’]?ll|i will) (hurt|kill|ruin|wreck|end|destroy|obliterate|crush|eliminate|beat) you\b",
|
9 |
r"\b(i['’]?ll|i will) make you disappear\b",
|
@@ -22,8 +22,6 @@ MOTIF_PATTERNS = {
|
|
22 |
r"\b(i['’]?ll|i will) send you to (hell|the morgue)\b",
|
23 |
r"\b(i['’]?ll|i will) make sure you’re never seen again\b",
|
24 |
r"\b(i['’]?ll|i will|ill) put you in (a|the) rose garden\b"
|
25 |
-
],
|
26 |
-
"extreme_control": [
|
27 |
r"\b(i (won[’']?t|will not) let you (leave|go|talk to|see|text|spend time with) (him|her|them|anyone))\b",
|
28 |
r"\b(you (can[’']?t|are not allowed to|shouldn’t)) (go out|leave|talk to|see|text|spend time with|have friends)\b",
|
29 |
r"\b(i (decide|get to decide|control|own) what you (do|say|wear|eat|spend|see|talk to))\b",
|
@@ -37,8 +35,6 @@ MOTIF_PATTERNS = {
|
|
37 |
r"\byou do what i say\b",
|
38 |
r"\b(you better|you have to) do what i say\b",
|
39 |
r"\b(you['’]?re not going|you’re not leaving|i won’t let you go)\b"
|
40 |
-
],
|
41 |
-
"suicidal_threat": [
|
42 |
r"\b(i['’]?ll|i will) (kill|hurt) myself (if you leave|if you don’t come back|unless you stay)\b",
|
43 |
r"\bi (don’t|do not) want to live (without you|if you leave)\b",
|
44 |
r"\bi['’]?ll (die|disappear|end it) (if|unless) you (leave|go|don’t call)\b",
|
|
|
3 |
import re
|
4 |
|
5 |
MOTIF_PATTERNS = {
|
6 |
+
"threat": [
|
7 |
r"\b(i['’]m|i am) going to (hurt|kill|break|ruin|destroy|end|bash|beat|smash|wreck) you\b",
|
8 |
r"\b(i['’]?ll|i will) (hurt|kill|ruin|wreck|end|destroy|obliterate|crush|eliminate|beat) you\b",
|
9 |
r"\b(i['’]?ll|i will) make you disappear\b",
|
|
|
22 |
r"\b(i['’]?ll|i will) send you to (hell|the morgue)\b",
|
23 |
r"\b(i['’]?ll|i will) make sure you’re never seen again\b",
|
24 |
r"\b(i['’]?ll|i will|ill) put you in (a|the) rose garden\b"
|
|
|
|
|
25 |
r"\b(i (won[’']?t|will not) let you (leave|go|talk to|see|text|spend time with) (him|her|them|anyone))\b",
|
26 |
r"\b(you (can[’']?t|are not allowed to|shouldn’t)) (go out|leave|talk to|see|text|spend time with|have friends)\b",
|
27 |
r"\b(i (decide|get to decide|control|own) what you (do|say|wear|eat|spend|see|talk to))\b",
|
|
|
35 |
r"\byou do what i say\b",
|
36 |
r"\b(you better|you have to) do what i say\b",
|
37 |
r"\b(you['’]?re not going|you’re not leaving|i won’t let you go)\b"
|
|
|
|
|
38 |
r"\b(i['’]?ll|i will) (kill|hurt) myself (if you leave|if you don’t come back|unless you stay)\b",
|
39 |
r"\bi (don’t|do not) want to live (without you|if you leave)\b",
|
40 |
r"\bi['’]?ll (die|disappear|end it) (if|unless) you (leave|go|don’t call)\b",
|