Datasets:

Modalities:
Tabular
Text
Formats:
csv
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
Nayeon Lee commited on
Commit
f1b5d0c
1 Parent(s): a4f74b1

Upload 35 files

Browse files
Files changed (34) hide show
  1. README.md +12 -11
  2. data/CREHate_CP.csv +784 -0
  3. data/CREHate_SBIC.csv +0 -0
  4. data/CREHate_final_annotations.csv +0 -0
  5. data/CREHate_raw_annotations.csv +0 -0
  6. data/country_keywords.json +262 -0
  7. finetune/CREHate-TAG-train.sh +8 -0
  8. finetune/CREHate-train.sh +45 -0
  9. finetune/config.py +83 -0
  10. finetune/config_files/BERT-CREHate-ALL-tag-train.json +32 -0
  11. finetune/config_files/BERT-CREHate-ALL-train.json +32 -0
  12. finetune/config_files/BERTweet-CREHate-ALL-tag-train.json +32 -0
  13. finetune/config_files/BERTweet-CREHate-ALL-train.json +32 -0
  14. finetune/config_files/HateBERT-CREHate-ALL-tag-train.json +32 -0
  15. finetune/config_files/HateBERT-CREHate-ALL-train.json +32 -0
  16. finetune/config_files/RoBERTa-CREHate-ALL-tag-train.json +32 -0
  17. finetune/config_files/RoBERTa-CREHate-ALL-train.json +32 -0
  18. finetune/config_files/ToxDect-RoBERTa-CREHate-ALL-tag-train.json +32 -0
  19. finetune/config_files/ToxDect-RoBERTa-CREHate-ALL-train.json +32 -0
  20. finetune/config_files/TwHIN-BERT-CREHate-ALL-tag-train.json +32 -0
  21. finetune/config_files/TwHIN-BERT-CREHate-ALL-train.json +32 -0
  22. finetune/config_files/Twitter-RoBERTa-CREHate-ALL-tag-train.json +32 -0
  23. finetune/config_files/Twitter-RoBERTa-CREHate-ALL-train.json +32 -0
  24. finetune/data_splits/CREHate_test.csv +288 -0
  25. finetune/data_splits/CREHate_test_tagged.csv +0 -0
  26. finetune/data_splits/CREHate_train.csv +0 -0
  27. finetune/data_splits/CREHate_train_tagged.csv +0 -0
  28. finetune/data_splits/CREHate_valid.csv +315 -0
  29. finetune/data_splits/CREHate_valid_tagged.csv +0 -0
  30. finetune/dataset.py +109 -0
  31. finetune/finetune.py +353 -0
  32. finetune/multi_label.py +276 -0
  33. finetune/multi_task.py +295 -0
  34. llm_inference.py +566 -0
README.md CHANGED
@@ -1,19 +1,10 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- task_categories:
4
- - text-classification
5
- language:
6
- - en
7
- size_categories:
8
- - 1K<n<10K
9
- ---
10
  # CREHate
11
 
12
  Repository for the CREHate dataset, presented in the paper "[Exploring Cross-cultural Differences in English Hate Speech Annotations: From Dataset Construction to Analysis](https://arxiv.org/abs/2308.16705)". (NAACL 2024)
13
 
14
  ## About CREHate (Paper Abstract)
15
 
16
- <img src="CREHate_Dataset_Construction.png" width="400">
17
 
18
  Most hate speech datasets neglect the cultural diversity within a single language, resulting in a critical shortcoming in hate speech detection.
19
  To address this, we introduce **CREHate**, a **CR**oss-cultural **E**nglish **Hate** speech dataset.
@@ -45,4 +36,14 @@ cross-culturally annotated.
45
 
46
  </div>
47
 
48
- All 1,580 posts have been annotated by annotators from the United States, Australia, United Kingdom, Singapore, and South Africa, resulting in a total of 7,900 labels.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # CREHate
2
 
3
  Repository for the CREHate dataset, presented in the paper "[Exploring Cross-cultural Differences in English Hate Speech Annotations: From Dataset Construction to Analysis](https://arxiv.org/abs/2308.16705)". (NAACL 2024)
4
 
5
  ## About CREHate (Paper Abstract)
6
 
7
+ <img src="https://github.com/nlee0212/CREHate/blob/main/CREHate_Dataset_Construction.png" width="400">
8
 
9
  Most hate speech datasets neglect the cultural diversity within a single language, resulting in a critical shortcoming in hate speech detection.
10
  To address this, we introduce **CREHate**, a **CR**oss-cultural **E**nglish **Hate** speech dataset.
 
36
 
37
  </div>
38
 
39
+ All 1,580 posts have been annotated by annotators from the United States, Australia, United Kingdom, Singapore, and South Africa, resulting in a total of 7,900 labels.
40
+
41
+
42
+ ## File Structure
43
+ - `data/`: Contains each country's labels for all posts, including a raw annotation file. Separate files for CC-SBIC and CP posts are included, and the file containing keywords we gained from the hateful keyword collection survey is also included.
44
+ - `llm_inference.py`: Codes used for LLM inference. OpenAI key is needed for inference in GPT models. By changing L468, you can test on prompts with country personas.
45
+
46
+ ```shell
47
+ $ python llm_inference.py
48
+ ```
49
+ - `finetune/`: Contains codes and training data splits for finetuning BERT-variants (Appendix F)
data/CREHate_CP.csv ADDED
@@ -0,0 +1,784 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,Text,United_States_Hate,Australia_Hate,United_Kingdom_Hate,South_Africa_Hate,Singapore_Hate
2
+ AU-YouTube-0,"The National Authoritarian Terrorist Organization is behind this instability, just like they are responsible for all the other coos to disrupt opposing countries around the world!😔",0.0,1.0,0.0,0.0,1.0
3
+ AU-YouTube-1,"American propaganda, nothing comes out of the US is true, the terrorist cia has been committing much worse crimes",0.0,0.0,0.0,0.0,1.0
4
+ AU-YouTube-2,@USER  they just let 2 terrorists go from Gitmo they have room,0.0,0.0,0.0,0.0,0.0
5
+ AU-YouTube-3,USA BIGGEST TERRORISTS,1.0,1.0,0.0,1.0,1.0
6
+ AU-YouTube-4,China isn't nothing but a crap ton of terrorists in one crap hole country. We should kick every one of them out of USA,1.0,1.0,1.0,1.0,1.0
7
+ AU-YouTube-5,Taiwan president should issue warning to fag xi jin ping n put him on most wanted,1.0,1.0,1.0,1.0,1.0
8
+ AU-YouTube-6,I look more Abo than Gordon Reid and i ain't got any Abo in me.,0.0,1.0,1.0,1.0,0.0
9
+ AU-YouTube-7,"Go to hell, Abbo knees",0.0,1.0,1.0,0.0,1.0
10
+ AU-YouTube-8,Well good for one good for why should the abos get it all,0.0,1.0,0.0,0.0,1.0
11
+ AU-YouTube-9,Calling people Abo is so 1960's racist slang,0.0,0.0,0.0,0.0,0.0
12
+ AU-YouTube-10,The special treatment is for real abbos only.......equality.,0.0,1.0,1.0,1.0,0.0
13
+ AU-YouTube-11,"The US is committed to defending Australia? 😆🤣😆🤣😆🤣 sooo fucken funny, the US should first be able to defend itself. Two fascist coward terrorist nations are making fool of themselves",0.0,1.0,1.0,0.0,1.0
14
+ AU-YouTube-12,@USER  no clue joe north atlantic terrorist organisation didnt commence to expand 2014,0.0,0.0,0.0,0.0,0.0
15
+ AU-YouTube-13,Well done Australia but as a proud Pom England to be fair never turned up 👏👏👏👏👏👏,0.0,0.0,0.0,0.0,0.0
16
+ AU-YouTube-14,Bruh Nelson Mandela was a communist terrorist he and his wife used to burn opponents with burning tires and blew up school buses,0.0,0.0,0.0,1.0,0.0
17
+ AU-YouTube-15,What part of hammass being labeled terrorists did you miss???,0.0,0.0,0.0,1.0,0.0
18
+ AU-YouTube-16,Because they are into trafficking woman so to them it's like ordering lunch they are sickening pedophiles,0.0,1.0,0.0,0.0,0.0
19
+ AU-YouTube-17,"As a Pom im proud of you at Sky Aus
20
+ IM ASHAMED OF SLY NEWS UK ,i cant believe the difference between true truth & the shite we are sold at home",0.0,0.0,0.0,0.0,0.0
21
+ AU-YouTube-18,Key findings: There's no curry restaurant on the Moon (soon to change). They'll call the franchise the Luney Indian.,0.0,0.0,1.0,1.0,0.0
22
+ AU-YouTube-19,"​​ @USER we would hv established few curry restaurants before your ""mass transits"" And curry would be shoved down your throats as a welcome meal.",0.0,1.0,1.0,1.0,0.0
23
+ AU-YouTube-20,Does it have curry on board?,0.0,0.0,0.0,0.0,0.0
24
+ AU-YouTube-21,At least they now know that India is more than just curry and cricket 😅,0.0,0.0,0.0,1.0,1.0
25
+ AU-YouTube-22,"And Australians can't wait a second to say Cunt and Mate, clown from Kangaroo Land",0.0,1.0,1.0,0.0,0.0
26
+ AU-YouTube-23,Made out of paper.... fuelled by curry farts!,0.0,1.0,0.0,1.0,0.0
27
+ AU-YouTube-24,"@USER  So what are u crying about here..
28
+
29
+ Ur country can't even deal with animals like rabbits, Camels, foxes not even frogs lol 😅..
30
+
31
+ So forget about space...",0.0,0.0,0.0,1.0,0.0
32
+ AU-YouTube-25,Fuck off Australia just before made making fun of us and morale support fucking cunts white are,1.0,1.0,1.0,1.0,1.0
33
+ AU-YouTube-26,"​ @USER stupid
34
+ Your country only funds Terrorist ngo Missionary",1.0,0.0,1.0,1.0,1.0
35
+ AU-YouTube-27,The ABC is infested with communists who love the terrorists in Palestine and hate democratic Israel,1.0,1.0,1.0,0.0,1.0
36
+ AU-YouTube-28,Islam is a satanic ideology for pedophiles and weak minded people,1.0,1.0,1.0,1.0,1.0
37
+ AU-YouTube-29,JUSTIN TRUDEAU PM OF CANADA SELF PROCLAIMED FEMINIST LOVES ENSLAVEMENT OF WOMEN BY ISLAMIC TERRORISTS BUT MAYBE KARMA IS COMING HOME TO THIS BASTARD HE HAS CORONAVIRUS HOPEFULLY IT WILL BE FATALE,1.0,1.0,1.0,1.0,1.0
38
+ AU-YouTube-30,"Watch the video. Her murderers had SMILES and looks of nonchalance on their faces. To them, this was fun and no big deal.",0.0,0.0,0.0,0.0,0.0
39
+ AU-YouTube-31,"By giving the Islamic council access to the Taliban they will inspire more terrorist activities here in Australia, it's reckless and it's a dumb idea",0.0,1.0,0.0,1.0,1.0
40
+ AU-YouTube-32,kick these cunts out oz catch hold of your selves,0.0,1.0,0.0,1.0,1.0
41
+ AU-YouTube-33,Taliban are Terrorist .Just say no. They created a Humanitarian crises. Taliban are killing and torchuring women and people daily.,0.0,0.0,0.0,1.0,1.0
42
+ AU-YouTube-34,"I am an afghan muslim escape from discrimination rule of Taliban, they are a terrorist group, no need to talk with such Extremist group",0.0,0.0,0.0,1.0,0.0
43
+ AU-YouTube-35,same traitor coward terrorists as always happens 😵💀🖤💔🤣😭😋😁💤,0.0,0.0,0.0,1.0,1.0
44
+ AU-YouTube-36,They need to be labelled as terrorist groups an deported..,1.0,1.0,1.0,1.0,1.0
45
+ AU-YouTube-37,"just like America it's world leader, when they are strong, funding terrorist and manipulation poor people into terrorist just like taliban.",0.0,0.0,1.0,1.0,1.0
46
+ AU-YouTube-38,Mechanical engineer to go to school 😂 just give them what is right for them you cunt tell him piers. Islamic can't stop gila or woman to get educated. What a pricks,0.0,1.0,1.0,1.0,1.0
47
+ AU-YouTube-39,schools are closed because u mf put murderers in schools they are setteling the schools and temp closed them to make things peaceful,0.0,0.0,0.0,0.0,0.0
48
+ AU-YouTube-40,This man with a beard is very malicious and unfortunately the majority of Muslims support him and practice the same provocative method and evade the answer. Terrorist ideology distorts human nature.,1.0,1.0,1.0,1.0,0.0
49
+ AU-YouTube-41,"It's Achmed the terrorist 😂😂😂 I was expecting him to say ""silence I kill you"" 😂😂",1.0,1.0,1.0,0.0,0.0
50
+ AU-YouTube-42,I bet that turban towel head married his 6 year daughter,1.0,1.0,1.0,1.0,1.0
51
+ AU-YouTube-43,Blow that towel head up,1.0,1.0,1.0,0.0,1.0
52
+ AU-YouTube-44,Shout it out Meg!!..A CAT CANNOT BE A DOG!!!!!!..A FROG CANNOT BE A RABBIT..A BUTTERFLY CANNOT BE PIGEON...A FISH CANNOT BE AN ANT AND FINALLY A MAN CANNOT BE A WOMAN.!!!.,1.0,1.0,1.0,0.0,1.0
53
+ AU-YouTube-45,"non binary was invented by a pedophile named Alfred kinsie, saying you're non binary is like walking around quoting jeffrey Epstein",1.0,1.0,1.0,1.0,1.0
54
+ AU-YouTube-46,Child abuse !! Mental child abuse ! She's not a parent ! She's a pedophile !,1.0,0.0,1.0,0.0,1.0
55
+ AU-YouTube-47,"she only needed that episode to be shown, now its on the internet and every poor kid can see it, evil fucking cunts !!!
56
+ what the actuall fuck is wrong with this groomers????",0.0,0.0,0.0,0.0,0.0
57
+ AU-YouTube-48,DEATH TO THE PALE SOUTH AFRICAN CUNT WHORE INVADERS!,1.0,1.0,1.0,1.0,1.0
58
+ AU-YouTube-49,Any people who are supporting this. They are supporting pedophiles who are going to target children to think this normal thinking,0.0,1.0,1.0,0.0,1.0
59
+ AU-YouTube-50,"Because without ""straight"" you wouldn't be here at all ya shirtlifter. We'd die out in a generation if we were all homos.",1.0,1.0,1.0,1.0,1.0
60
+ AU-YouTube-51,Eww this is all disgusting...next they will have pedophiles claiming they identify as a child ....crazy,0.0,1.0,1.0,1.0,0.0
61
+ AU-YouTube-52,The Satanic Global Elite pedophiles are behind all these trans people...they are going after our kids after desecrating the men and women.... please fight back. We are many against their few....,1.0,1.0,1.0,1.0,1.0
62
+ AU-YouTube-53,Stop trying to push the rainbow agenda on our kids prek they need trans drag queen showns in school ? Really? Keep your pedophiles books,1.0,1.0,1.0,0.0,1.0
63
+ AU-YouTube-54,Of course he supports all terrorists,0.0,1.0,0.0,1.0,1.0
64
+ AU-YouTube-55,"He can't wait for pedophiles to be added to the alphabet people. Won't be long now, couple of years Joe then you can sniff all the kiddies you want.",1.0,0.0,1.0,1.0,0.0
65
+ AU-YouTube-56,"Pandering to groomers and pedophiles, that's the way Joe rolls.",1.0,0.0,0.0,0.0,1.0
66
+ AU-YouTube-57,The West are the Pedophile Capital of the World🤮🤮🤮,1.0,1.0,0.0,0.0,1.0
67
+ AU-YouTube-58,The lgbtq+ don’t accept pedophiles but nice try. Provide some evidence if i am wrong,0.0,0.0,0.0,0.0,0.0
68
+ AU-YouTube-59,"So the Biden regime will invite an openly Pedophile next , to stop the stereotype about MAPS . People ? FJB AND HIS REGIME 🤬",1.0,0.0,1.0,0.0,0.0
69
+ AU-YouTube-60,You’re Irish and you support your pals the Provisional IRA murderers of the innocent Australian civilians Stephen Melrose and Nick Spanos. You support terrorists.,0.0,1.0,1.0,1.0,1.0
70
+ AU-YouTube-61,Can we now admit trannies are fucking nuts,1.0,1.0,1.0,1.0,1.0
71
+ AU-YouTube-62,"The proverbial slippery slope !!!!!
72
+ They Fd up, they came for our children !!!!",0.0,0.0,0.0,0.0,1.0
73
+ AU-YouTube-63,This is how they work. They are domestic terrorists. They are taking over corporations world wide and nothing good will come of it.,0.0,1.0,0.0,0.0,1.0
74
+ AU-YouTube-64,"until the Terrorists(Normal Society) start strapping themselves with IED's & AR's and stand between LGBTQ and start blasting!
75
+ HECK YEAH!!!!!!!!!!!!!!!!!!!!!!",1.0,1.0,1.0,1.0,1.0
76
+ AU-YouTube-65,"The '+' is for Pedophiles and, the euphimistically called, Minor Attracted Persons.",0.0,1.0,0.0,1.0,0.0
77
+ AU-YouTube-66,To late! The damage is already done! Laws should be put back in place making homo sexuality illegal!,1.0,1.0,1.0,1.0,1.0
78
+ AU-YouTube-67,"Good for Uganda.
79
+ LGBT is a trojan horse to transgenderism and grooming children.
80
+ The slippery slope is real.",1.0,1.0,1.0,0.0,1.0
81
+ AU-YouTube-68,Best wishes Uganda . Fighting back against violent homosexuality & the grooming and violation of children . Australia .,1.0,1.0,1.0,0.0,0.0
82
+ AU-YouTube-69,"@USER ...That's not what the the news anchor said concerning the Ugandan law. He said Death penalty is for AGGREVATED homo crimes against children, and passing HIV to same sex partners.",0.0,0.0,0.0,0.0,0.0
83
+ AU-YouTube-70,"He isn't gay he is miserable.
84
+ Whether he is hetero or homo is another matter.",0.0,0.0,0.0,1.0,0.0
85
+ AU-YouTube-71,Get trannies out of womens/mens sports. I think most people would agree. These people should start their own divisions if they want to compete.,1.0,1.0,1.0,1.0,1.0
86
+ AU-YouTube-72,Is Trudeau now pedophile or homosexual?,1.0,0.0,1.0,1.0,1.0
87
+ AU-Reddit-0,"Imagine how clever he thought he was being writing that tweet - ""her last name is Abo; boy, have I got some gold up my sleeve.""",0.0,0.0,0.0,0.0,0.0
88
+ AU-Reddit-1,Poof doof and bush doofs,0.0,0.0,0.0,0.0,0.0
89
+ AU-Reddit-2,Yes cunt… it is,0.0,0.0,0.0,0.0,1.0
90
+ AU-Reddit-3,"Lmao - time to start your tally. I was gettin ""ching chong china-man'd"" back in grade 3",1.0,1.0,1.0,0.0,1.0
91
+ AU-Reddit-4,Call a dumb cunt a dumb cunt - and call the police,0.0,0.0,0.0,1.0,0.0
92
+ AU-Reddit-5,"It's not lock down, it's lock out, which was long before the pandemic.
93
+
94
+ For all the awesome Leb foodie night life, come out to Bankstown area, and then drop by my place for Wheel of Yagoona",0.0,0.0,0.0,0.0,0.0
95
+ AU-Reddit-6,"So, to summarise your point, all those fucking low-life gooks sandgropers were racist towards you even though you don't look like a towel head and they were OK when you talked like a pom ?",1.0,1.0,1.0,1.0,1.0
96
+ AU-Reddit-7,"""Super racist remarks""
97
+
98
+ ""Ching Chong""
99
+
100
+ We're doomed.",1.0,1.0,1.0,1.0,1.0
101
+ AU-Reddit-8,If an Asian guy wants to call his burger a ching chong burger then let him.,1.0,1.0,1.0,0.0,1.0
102
+ AU-Reddit-9,You may have just seen some drunks coming back from denzel curry tbh,0.0,0.0,0.0,0.0,0.0
103
+ AU-Reddit-10,"They knew they were doing the wrong thing, but they'd already decided to do it, so they found a way to justify it to themselves. Stupid, selfish cunts. Everyone on that boat deserves an uppercut.",0.0,0.0,0.0,1.0,0.0
104
+ AU-Reddit-11,"It is a thing, only different now is we are full of dumb cunts who don't use the other half of their brain.",0.0,0.0,0.0,0.0,0.0
105
+ AU-Reddit-12,Welcome to Melbourne. Full of youth criminals and sluts. They all deserve to be stabbed,1.0,1.0,1.0,1.0,1.0
106
+ AU-Reddit-13,Being a real estate agent requires no education and is everyone's fallback job. Are you really surprised that they're cunts? They're just being them.,0.0,0.0,0.0,0.0,1.0
107
+ AU-Reddit-14,Recovering Mormon and fellow homo here. Congratulations on the change in lifestyle. Moved to Brisbane in 2017. Feel free to send a DM if you'd like,0.0,0.0,0.0,0.0,0.0
108
+ AU-Reddit-15,"The understanding that ""Cunts fucked"" is something that is broken and cannot be repaired, or is not going to be financially insignificant to repair.",0.0,0.0,0.0,0.0,0.0
109
+ AU-Reddit-16,Come around to my place cunt and we can see,0.0,0.0,0.0,0.0,1.0
110
+ AU-Reddit-17,"short answer No, you are not :) fuck those cunts",0.0,0.0,0.0,1.0,0.0
111
+ AU-Reddit-18,So your mother-in-law is a cunt? and so is her sister? It happens.,1.0,0.0,0.0,0.0,0.0
112
+ AU-Reddit-19,I prefer chicken katsu curry.,0.0,0.0,0.0,0.0,0.0
113
+ AU-Reddit-20,"The cunts who can't turn a block later or earlier on a right turn with a turning lane and decide to clog up a lane really grinds my gears.
114
+
115
+ Still better than Redlands......",0.0,0.0,0.0,0.0,1.0
116
+ AU-Reddit-21,"Typical abos. Im from the far north and this is a daily occurrence, even woman doing it to 120kg full grown ass men.. alcohol and drugs play a huge part.",0.0,1.0,1.0,1.0,0.0
117
+ AU-Reddit-22,That’s fine. With the new digital loss of rights act. We can get a god fearing Christian warrior in the police to plant some cp on the homos hard drive. Problem solved.,1.0,1.0,1.0,1.0,1.0
118
+ AU-Reddit-23,"My friend djs at poof doofs in prahran so he recommends that
119
+
120
+ Also theres a meetup discord URL",0.0,1.0,0.0,0.0,0.0
121
+ AU-Reddit-24,"Saturdays - poof doof.
122
+ Weekdays- Sircuit, Rainbow, Peel",0.0,0.0,0.0,0.0,0.0
123
+ AU-Reddit-25,"*in a civil suit.
124
+
125
+ Now bring this murderer to a military tribunal and throw him in jail.",0.0,0.0,0.0,0.0,0.0
126
+ AU-Reddit-26,"Jesus a week before the guy was supposed to get married, and the article says that the murderer was unknown to the victims. How horrible and random.",0.0,0.0,0.0,0.0,0.0
127
+ AU-Reddit-27,They'd be walking if he was a double murderer.,0.0,0.0,0.0,0.0,0.0
128
+ AU-Reddit-28,What about little Suzie who going to stop her doing onlyfans an being a disgusting slut,1.0,1.0,1.0,0.0,0.0
129
+ AU-Reddit-29,No doubt 10 years and bail at 5 like the other teen murderers get. Disgusting,0.0,0.0,0.0,0.0,0.0
130
+ AU-Reddit-30,He’s a murderer in the same way Hans Moleman from the Simpsons is blind,0.0,0.0,0.0,0.0,0.0
131
+ AU-Reddit-31,""" They say I know fkn nothing! But I know fk all! ""
132
+
133
+ -Wog Boy
134
+
135
+ Now googling 'muzza'",0.0,0.0,1.0,0.0,0.0
136
+ AU-Reddit-32,"Man I jerked off over her so many times in grade 11 even with the wog Moe.
137
+
138
+ Same with Rose Byrne in two hands",0.0,0.0,0.0,0.0,0.0
139
+ AU-Reddit-33,"Gets said on minesites alot.
140
+
141
+ Aboriginals also use it as a add-on to their casual racism. Ie. White cunt, black cunt, dog cunt etc.
142
+
143
+ In general society it's not quite so used.",1.0,1.0,1.0,1.0,1.0
144
+ AU-Reddit-34,Anjappar in the HSBC building. Try their Egg Curry and Rice.,0.0,0.0,0.0,0.0,0.0
145
+ AU-Reddit-35,Hunter connection - Malaysian curry is cheap and very decentv for the money imo. Roti set for the win.,0.0,0.0,0.0,0.0,0.0
146
+ AU-Reddit-36,I want to know what's in the green file. Curry + accounting on a Wednesday night?,0.0,0.0,0.0,0.0,0.0
147
+ AU-Reddit-37,King curry hut - Bracken ridge!,0.0,0.0,0.0,1.0,0.0
148
+ AU-Reddit-38,Curry n cask in corinda is the best.,0.0,0.0,0.0,0.0,0.0
149
+ AU-Reddit-39,"I dunno, Ravneels Curry House at Burpengary is pretty good",0.0,0.0,0.0,0.0,0.0
150
+ AU-Reddit-40,"IGA in Royal St, East Perth serves delicious takeaway curry/Indian food in containers.",0.0,0.0,0.0,0.0,0.0
151
+ AU-Reddit-41,"House of Spice in Baldivis does a delicious goat curry. Mother India in Fremantle is amazing too, but they’re only open on weekends, and I don’t think they do a goat curry.",0.0,0.0,0.0,0.0,0.0
152
+ AU-Reddit-42,Curries on Blvd Joondalup does a good goat curry,0.0,0.0,0.0,0.0,0.0
153
+ AU-Reddit-43,"Check out the curries at Logical Indian at Rundle Mall, Next to HnM.",0.0,0.0,0.0,0.0,0.0
154
+ AU-Reddit-44,Name something more iconic than a crusty old racist aussie cunt,1.0,0.0,1.0,1.0,1.0
155
+ AU-Reddit-45,"Typical right wing old cunt, not surprising. Can't even tell the difference between Asians",1.0,1.0,1.0,1.0,1.0
156
+ AU-Reddit-46,“Fukn chinks are spying on me fishes”,1.0,1.0,1.0,0.0,1.0
157
+ AU-Reddit-47,"Does the Pope shit in the woods?
158
+ It's not rocket surgery.
159
+ Ironing out the chinks.",0.0,1.0,1.0,0.0,1.0
160
+ AU-Reddit-48,Probably should have made it more clear that this post was just for laughs so that people didn’t feel the need to define chinks...,1.0,1.0,1.0,0.0,1.0
161
+ AU-Reddit-49,iron out all the chinks that’s right that’s my education minister right there 😤😤😤,1.0,1.0,1.0,0.0,1.0
162
+ AU-Reddit-50,She will be ironing for a very long time in syd...chinks everywhere. She may need a steam press. A BIG ONE😷,1.0,1.0,1.0,1.0,1.0
163
+ AU-Reddit-51,"I run a sparky business and I have to answer every call. Honestly 50% of calls now are from some cunt trying to scam me, or sell me something",0.0,0.0,0.0,0.0,0.0
164
+ AU-Reddit-52,"Well of course he would, thats how them secretly Moslem Lebs are.
165
+
166
+ /s",1.0,1.0,1.0,1.0,1.0
167
+ AU-Reddit-53,My leb friends say Mr. Shawarma in Greenacre is good shawarma. I haven't tried it myself though.,0.0,0.0,0.0,0.0,0.0
168
+ AU-Reddit-54,Lebs. Guaranteed.,0.0,1.0,0.0,0.0,0.0
169
+ AU-Reddit-55,These cunts getting one cent of taxpayers money for their brainwashing is some bullshit,0.0,0.0,0.0,0.0,0.0
170
+ AU-Reddit-56,Can religious church's stop hiring pedophiles?,0.0,0.0,1.0,0.0,1.0
171
+ AU-Reddit-57,They also have poof doofs at the ivy.,1.0,0.0,1.0,0.0,0.0
172
+ AU-Reddit-58,"You will be safe at Poof Doof, but bored. Try Heaps Gay or Unicorns parties. More ‘variety’ of people of the rainbow!",0.0,0.0,0.0,0.0,1.0
173
+ AU-Reddit-59,"As a straight bloke I have been to Poof Doof with other straight mates. The only thing to watch out for at Doof are the straight chicks, they are cooked cunts.",1.0,1.0,1.0,1.0,1.0
174
+ AU-Reddit-60,">So of course like a modern homo
175
+
176
+ Do gay men refer to themselves (and each other?) as homos? I only know two gay men but I've never heard them use that term.",1.0,0.0,0.0,1.0,0.0
177
+ AU-Reddit-61,It's just cunts trying to sell shit. Not even kidding.,0.0,0.0,0.0,0.0,0.0
178
+ AU-Reddit-62,"Bearded tit has a heap on!
179
+ Sad Dyke Sundays is making a return this weekend too ☺️",1.0,0.0,0.0,0.0,0.0
180
+ AU-Reddit-63,Also Basil “I hate homeless people”. Cunt.,1.0,0.0,0.0,1.0,1.0
181
+ AU-Reddit-64,Odds on the Principal is a raging homo.,1.0,1.0,1.0,1.0,1.0
182
+ AU-Reddit-65,Get rid of him. We love homos.,0.0,0.0,0.0,0.0,0.0
183
+ AU-Reddit-66,Those homos and their welcome to country/policing agenda.../s,1.0,0.0,1.0,1.0,1.0
184
+ AU-Reddit-67,Another homo-in-denial joins the ranks.,1.0,1.0,1.0,1.0,1.0
185
+ AU-Reddit-68,Pedophile cult covers up pedophila. What's new? Poor woman.,0.0,0.0,0.0,0.0,0.0
186
+ AU-Reddit-69,"I hear he has disbanded the navy too. He did an inspection, so many boat people😱",0.0,0.0,0.0,0.0,0.0
187
+ AU-Reddit-70,But some of those boat people were au pairs.,0.0,1.0,1.0,0.0,0.0
188
+ AU-Reddit-71,"Ah the irony, when Australians become the boat people.",0.0,0.0,1.0,1.0,1.0
189
+ AU-Reddit-72,"Majority of people in this country are selfish, miserable bastards. Simple.
190
+
191
+ Never mind, some dickhead pointed out only 41.1% of Australians are dirty, old cunts. My bad!",1.0,1.0,0.0,1.0,1.0
192
+ AU-Reddit-73,Meanwhile in Brighton it's Lebs on jet skis doing the same crap.,0.0,1.0,1.0,1.0,1.0
193
+ AU-Reddit-74,This thread reinforces that Sydney is full of entitled cunts who all think they are right.,0.0,0.0,0.0,1.0,1.0
194
+ AU-Reddit-75,Its always a shit show there. I heard a Nurse at DoC call indigenous employees as boongs because they talked loudly.,0.0,0.0,1.0,1.0,0.0
195
+ AU-Reddit-76,Your landlord is a shit cunt.,0.0,0.0,0.0,0.0,1.0
196
+ GB-YouTube-0,Out of all the immigrants how many are gonna go back home?,0.0,1.0,1.0,0.0,0.0
197
+ GB-YouTube-1,Well it'd be a shame if Paddy lost you in the ocean.,0.0,0.0,0.0,0.0,0.0
198
+ GB-YouTube-2,"@USER  Very few Poles in Ireland now, they went to better places once the Celtic Tiger went tits up.",0.0,0.0,0.0,0.0,1.0
199
+ GB-YouTube-3,People are protesting all over Ireland not just Dublin rural Ireland is swamped with immigrants aswell,0.0,1.0,0.0,0.0,0.0
200
+ GB-YouTube-4,Now you know how we feel when your pikeys come over to england! 😂😂😂,1.0,1.0,1.0,1.0,1.0
201
+ GB-YouTube-5,The illegal immigrants are far smarter than the Irish Government.,0.0,1.0,0.0,0.0,0.0
202
+ GB-YouTube-6,"Too right,I know you have poles living and working in ireland and many married Irish ladies,they have fitted in quite well, similar cultures.",0.0,0.0,0.0,0.0,0.0
203
+ GB-YouTube-7,"Home Office will do nothing. Illegal immigrants are more valuable than us. BICYCLE S are expensive, I had to save to buy one. WHERE DID THEY GET £ HUNDREDS ????",1.0,1.0,0.0,0.0,1.0
204
+ GB-YouTube-8,SOUTH AFRICANS are called xenophobic when they complain about illegal immigrants who get employed and paid cheap labour. Thank you,0.0,0.0,0.0,0.0,1.0
205
+ GB-YouTube-9,No law and order against the illegal immigrants criminals cartels fentanly drugs,1.0,1.0,1.0,0.0,1.0
206
+ GB-YouTube-10,"when immigrants have the vote, an vote to say they're for immigration, how can you tell what the true figures are?",0.0,0.0,0.0,1.0,0.0
207
+ GB-YouTube-11,I've just seen a group of 8 immigrants walking in my village. It's a disgrace and shouldn't be allowed!!!!!,1.0,1.0,1.0,1.0,1.0
208
+ GB-YouTube-12,Including chinese immigrants credible questions they bring illegal drugs and gambling that not allowed in their own country,1.0,1.0,1.0,1.0,0.0
209
+ GB-YouTube-13,Love to Britain thats the path to follow. Massive economical immigrants taked as for asylum seekers will cause mayhem like in France please follow the path of Poland and Hungary.,0.0,0.0,1.0,0.0,1.0
210
+ GB-YouTube-14,Yeah yeah yeah we’ve heard this all before. He wants more immigrants not less. Lies lies lies,0.0,0.0,0.0,0.0,1.0
211
+ GB-YouTube-15,"Have a look at London and Paris,
212
+ Having too many immigrants is bad for most country",1.0,1.0,1.0,1.0,1.0
213
+ GB-YouTube-16,USA doesn’t admit as many immigrants as Canada. Take a look up here it’s insanity,0.0,0.0,0.0,0.0,0.0
214
+ GB-YouTube-17,They never address the elephant in the room which is that only 1 in 5 Muslims immigrants work in the U.K.,0.0,0.0,1.0,0.0,0.0
215
+ GB-YouTube-18,saw a youtuber channel eh went to village in slovkia alot of the gypsy people there want to come back to uk,1.0,0.0,0.0,0.0,1.0
216
+ GB-YouTube-19,@USER  Glad you are where you belong - at last. My family are all immigrants and nobody ran away. Says more about you than Britain.,0.0,0.0,0.0,0.0,0.0
217
+ GB-YouTube-20,@USER  A pikey calling someone uneducated. The irony is painful 😂,1.0,0.0,1.0,1.0,1.0
218
+ GB-YouTube-21,@USER  Islamic terrorists,0.0,0.0,1.0,1.0,1.0
219
+ GB-YouTube-22,😂but paki never tried to stop the accident by shooting it down ..probably they love accident 😂,1.0,1.0,1.0,0.0,1.0
220
+ GB-YouTube-23,"Now that a high profile burning of the homosexual and queer 'pride' flag has been made, maybe he should do the same in order to recant. I'm surprised that more of this is being done by Muslims.",1.0,1.0,1.0,1.0,0.0
221
+ GB-YouTube-24,Show your audience them Ukrainian nazis,1.0,1.0,1.0,1.0,1.0
222
+ GB-YouTube-25,"We Poles 🇵🇱 share with British 🇬🇧common Christian legacy ✝️, but you do prefer Muslims ☪️ 👍",0.0,0.0,0.0,1.0,1.0
223
+ GB-YouTube-26,We think the U.K. should look at European immigrants . 6 million compared to 500k since 2015. 600k since 2008.,0.0,0.0,0.0,0.0,0.0
224
+ GB-YouTube-27,"British people refuse to do the jobs immigrants will do.
225
+ Education is poor in the UK immigrants fill skill shortages.",0.0,0.0,0.0,0.0,0.0
226
+ GB-YouTube-28,Before long we will have more immigrants than UK citizens. What do our government do?? Poke their noses in other countries wars. Wake up,0.0,0.0,1.0,0.0,1.0
227
+ GB-YouTube-29,Brits are just jealous. All these immigrants are highly educated and hard working. They are putting lazy British to shame,1.0,0.0,1.0,0.0,1.0
228
+ GB-YouTube-30,"Those are the skilled immigrants that have integrated into Western societies, instead of creating parallel societies within their new host country.",0.0,0.0,0.0,1.0,0.0
229
+ GB-YouTube-31,"It doesn’t lol, not when most immigrants that people are angry about are the dinghy scroungers",1.0,1.0,1.0,1.0,1.0
230
+ GB-YouTube-32,"There's no one to vote for who wants to stop it.
231
+ The won't realise how bad it is until the immigrants vote to deport the British. 🎉",0.0,1.0,1.0,0.0,1.0
232
+ GB-YouTube-33,"Australia take in more net immigrants per person than we do- they're on track for over 300,000 this year. So you'd be looking at similar levels, maybe more.",0.0,0.0,0.0,0.0,0.0
233
+ GB-YouTube-34,"By definition these "" illegal "" immigrants are criminals but instead of being penalised , like everyone else, they get rewarded. A total insult to the British people",0.0,1.0,1.0,1.0,1.0
234
+ GB-YouTube-35,"Scrap the processing, SIMPLY ROUND THESE ILLEGAL CRIMINAL IMMIGRANTS UO GET THEM ON A BOAT AND SEND THEM TO THE DESERTS THEY CAME FROM, OR FRANCE.",1.0,1.0,1.0,1.0,1.0
235
+ GB-YouTube-36,You have to give them I.d if you buy fags the cheek,1.0,0.0,0.0,0.0,0.0
236
+ GB-YouTube-37,"But wait...............I thought that illegal immigrants were not working, getting everything for free? Which is it?",0.0,0.0,0.0,1.0,0.0
237
+ GB-YouTube-38,"What’s the problem? It’s called capitalism………supply and demand! If it wasn’t for plucky immigrants you won’t get your pizza. Leave them alone, you Brexit Bullies!",0.0,0.0,0.0,1.0,0.0
238
+ GB-YouTube-39,The officers 👮‍♀️ want to nip down the coast they’ll find plenty there! Not hard is it 🤦🏼‍♂️😡,0.0,0.0,0.0,0.0,0.0
239
+ GB-YouTube-40,@USER  Donald Trump he is more British than the ones we have 50% Mommy is a Jock and he knows how to run Hotels he will get a better deal for our Illegals.,0.0,0.0,0.0,1.0,1.0
240
+ GB-YouTube-41,Muslim women with nice car helps immigrants cheat...no????,1.0,1.0,1.0,1.0,1.0
241
+ GB-YouTube-42,All immigrants lawyers are filthy rich ...,0.0,0.0,0.0,1.0,1.0
242
+ GB-YouTube-43,An immigrant helping immigrants get in the UK. Nothing new here,0.0,1.0,1.0,0.0,1.0
243
+ GB-YouTube-44,Labour councillor helping illegal immigrants bypass U.K. immigration laws ! How is this being tolerated by the Labour Party ?,0.0,1.0,0.0,0.0,0.0
244
+ GB-YouTube-45,We pakis are the most corrupt folks.,1.0,1.0,1.0,0.0,1.0
245
+ GB-YouTube-46,@USER  i dont eat frogs anyway so fuck em,0.0,0.0,0.0,0.0,0.0
246
+ GB-YouTube-47,"@USER  Umh! Hitler and the Nazis who pillaged, terrorised and murdered the French??",0.0,0.0,0.0,0.0,0.0
247
+ GB-YouTube-48,"If you really want to shorten the war, Russia, try messing with the Poles 😂",0.0,0.0,0.0,0.0,0.0
248
+ GB-YouTube-49,Wagner are standing by the Belarus border in case the poles try anything stupid.,0.0,0.0,0.0,0.0,0.0
249
+ GB-YouTube-50,​ @USER Did you miss the attacks on civilians by the Neo Nazi Avoz in The Donbass since 2014 which has killed over 100 children ?,0.0,0.0,0.0,0.0,0.0
250
+ GB-YouTube-51,@USER  i agree. I was talling about gypsy Romanians. Sorry!,0.0,0.0,0.0,0.0,0.0
251
+ GB-YouTube-52,@USER  Gypsy send to Albania Romanians back home and let uk be uk,1.0,1.0,1.0,1.0,1.0
252
+ GB-YouTube-53,Civil war to expell Islam and queers needed .,1.0,1.0,1.0,1.0,1.0
253
+ GB-YouTube-54,I am a Muslim from Pakistan. But I see whats wrong with UK. Just letting Immigrants in and then complaining.,0.0,0.0,0.0,0.0,1.0
254
+ GB-YouTube-55,"Alice is so right ,your a boy or a girl as simple as that give me a break whos making up these new gender benders some gay it",1.0,1.0,1.0,1.0,1.0
255
+ GB-YouTube-56,"Igaf how transphobic you think I am, you’re gonna learn what it feels like to catch one with your jaw if you gonna try to rob me. Give her damn money back queer bate.",1.0,1.0,1.0,1.0,1.0
256
+ GB-YouTube-57,Just call them ladyboys.,1.0,1.0,1.0,1.0,0.0
257
+ GB-YouTube-58,"Who’s Davis? The ladyboy with the Botox eyebrows?
258
+ Why can’t she accept herself as she is - an old woman with 2 trensticles.
259
+ And s(he) is mocking her fellow shemales.",1.0,1.0,1.0,1.0,1.0
260
+ GB-YouTube-59,That's OK as long as they stay in India we have enough queers in britain,1.0,1.0,1.0,1.0,1.0
261
+ GB-YouTube-60,@USER  What? Most of Europe is just as or more accepting of queer people than the US are...,0.0,0.0,0.0,0.0,0.0
262
+ GB-YouTube-61,how can he be gay if he made some kids with a woman :D I thought gays arent turned on by women :D,0.0,1.0,1.0,1.0,0.0
263
+ GB-YouTube-62,"ITV has already replaced Philips spot on This Morning with a couple of arabic speaking immigrants just off the boat.
264
+
265
+ ITV says their new presenter's represent their wider and majority audience.",1.0,1.0,1.0,0.0,0.0
266
+ GB-YouTube-63,"Holly and the POOF on this morning every MORNING what a Joke , there’s him banging a young man and Holly not doing nothing about it unbelievable 😡😡😡😡",1.0,1.0,1.0,0.0,0.0
267
+ GB-YouTube-64,"Why is he only mentioning gays and lesbians? Why is he ignoring the b, q, double spirit and 75 other groups? I am offended on their behalf?",0.0,0.0,0.0,0.0,0.0
268
+ GB-YouTube-65,It makes you want to open a bar and hire a lesbian to check for correct genitals at the door. Why cant trans people just open their own bar? That's what gays and lesbians did back in the day.,1.0,1.0,1.0,1.0,1.0
269
+ GB-YouTube-66,Trans gender is just down the slippery slope of homosexuality. People living in fantasy land. Men who want to be women. And women who want to have sex like a man.,1.0,1.0,1.0,1.0,1.0
270
+ GB-YouTube-67,"What a lesbian being closed minded, bigoted, and sexist. WHO would have thought that!!! BAAAHAAHHHAAAA! Queers acting queer.",1.0,1.0,1.0,1.0,1.0
271
+ GB-YouTube-68,"That tranny should SUE them for discrimination! Lesbians say a man CAN be a woman... so why CAN'T they be lesbian too? We ""straight"" men find all this lbgt infighting hilarious! 😂😂😂",1.0,1.0,1.0,1.0,1.0
272
+ GB-YouTube-69,"You're fine as a frog hair. Can't say I blame himhershehe. Whoever.. anyways, ill shut up now.",1.0,0.0,0.0,1.0,1.0
273
+ GB-YouTube-70,@USER  queer theory is making you crazy,1.0,1.0,1.0,0.0,0.0
274
+ GB-YouTube-71,"What a joke. All these queers are not getting along. The whole idealogy is sinful & disgusting. These are totally confused people, so no wonder there is chaos within their ranks.",1.0,1.0,1.0,1.0,1.0
275
+ GB-YouTube-72,"And this is why the transgender movement of today will lose, because gays and lesbians, once their allies, will want nothing to do with them.",0.0,0.0,1.0,0.0,1.0
276
+ GB-YouTube-73,You do all know it will illegal in the future for heterosexual mem to refuse to sleep with men in frocks ? The slippery slope never ever ends,1.0,1.0,1.0,1.0,1.0
277
+ GB-YouTube-74,You know that this is exactly what homophobes would say about police protecting a gay & lesbian march from attacks by the nazis?,0.0,0.0,1.0,1.0,0.0
278
+ GB-YouTube-75,so now gays are the good guys? gimme a break.,1.0,1.0,1.0,1.0,1.0
279
+ GB-YouTube-76,"It used too, alas. And queer used to mean strange. Ah, those were the days. 😌",0.0,0.0,1.0,0.0,0.0
280
+ GB-Reddit-0,"Cupcakes.
281
+
282
+ Ideally they'll come out identical, but in practice some will be browner than others, so it'll show you how even the heat is and where the hotspots are.",0.0,0.0,0.0,0.0,0.0
283
+ GB-Reddit-1,"Aw thanks, now I want pea soup & a fag.",0.0,0.0,0.0,0.0,0.0
284
+ GB-Reddit-2,Booze and fags,1.0,0.0,0.0,1.0,0.0
285
+ GB-Reddit-3,"As an Alpine owner I would've liked to see that display, but I'm not sure I could've dealt with all the god botherers.",0.0,0.0,1.0,0.0,0.0
286
+ GB-Reddit-4,Taking this opportunity for a fag break before we're on! Not heard our entry yet,0.0,0.0,0.0,0.0,0.0
287
+ GB-Reddit-5,"Oh god, uni all over again and having to explain that faggots are definitely a thing in the Black Country.",1.0,1.0,1.0,1.0,1.0
288
+ GB-Reddit-6,Can't beat chips done in the Ninjja foodie. Also if you can't taste the difference in the variety of tatties you must smoke 60 fags a day and gargle with bleach.,0.0,0.0,0.0,0.0,1.0
289
+ GB-Reddit-7,"Man, wait till you hear about Fairytale of New York using the word 'faggot'.",1.0,1.0,0.0,1.0,0.0
290
+ GB-Reddit-8,"I enjoy smoking and smirking
291
+
292
+ And weed may not be legal, but it's eeeeverywhere
293
+
294
+ And yes, 'can I bum a fag?' is still a common phrase to hear in your average pub",0.0,0.0,0.0,0.0,0.0
295
+ GB-Reddit-9,I rarely say cigarette I always say I'm going for a fag,0.0,0.0,0.0,0.0,0.0
296
+ GB-Reddit-10,"For me it's the transphobic gays and lesbians. Like once the right wing nuts are done with us, who do you think they're going to target next??",0.0,1.0,1.0,1.0,1.0
297
+ GB-Reddit-11,a while back i saw some mush in tescos 7am on a monday morning qued up at the lottery counter in a tiger onesie. looked like he was on the brink of death after a 3 day bender,0.0,0.0,0.0,0.0,0.0
298
+ GB-Reddit-12,People wont know that you are native american. They will probably think you are Indian or Paki.,0.0,1.0,1.0,1.0,0.0
299
+ GB-Reddit-13,"I apologise upfront for this, but what in gods name is a queer community space, and how does it differ from a community space? Are the benches pink or something?",0.0,1.0,1.0,0.0,1.0
300
+ GB-Reddit-14,"Of you move to lo typool for a queer Community space that's all you wouk have.
301
+
302
+ There is less than shit all in Pontypool.",0.0,1.0,0.0,0.0,1.0
303
+ GB-Reddit-15,"The Nazi's were enemies of the Brits, and the Muslims and the Nazi's both hated the Jews. These people need an education.",1.0,0.0,0.0,0.0,0.0
304
+ GB-Reddit-16,"Dear Americans,
305
+
306
+ When we ask if we can “bum a fag”, it’s not what you think it is.
307
+
308
+ When we say something about a “fanny”, you’re only a few inches out.",0.0,0.0,0.0,1.0,0.0
309
+ GB-Reddit-17,And you should ask tranny's what they call there hole,1.0,1.0,1.0,1.0,1.0
310
+ GB-Reddit-18,"I can't, I'm queer and they won't take it",0.0,0.0,0.0,0.0,0.0
311
+ GB-Reddit-19,"This morning I had a bag of mixed salad, a piece of cheese and 4 conference pears. Tomorrow I may go liquid and have Pino Grigio and 20 fags.",0.0,0.0,0.0,0.0,1.0
312
+ GB-Reddit-20,Why not include TUV in this pole. Who's the best politician there???,0.0,0.0,0.0,0.0,0.0
313
+ GB-Reddit-21,Metal and total gays at the same time!,1.0,0.0,0.0,1.0,0.0
314
+ GB-Reddit-22,"loreen's definitely winning, too many elderly gays phone voting for her not to when you combine it with those jury votes",0.0,1.0,0.0,0.0,1.0
315
+ GB-Reddit-23,who won or who is in pole position? I hope the Ukraine wins the contest,0.0,0.0,0.0,0.0,0.0
316
+ GB-Reddit-24,No pole on this stage set?,0.0,0.0,0.0,0.0,0.0
317
+ GB-Reddit-25,He’s one for the straight girls and gays 😂,0.0,0.0,0.0,1.0,0.0
318
+ GB-Reddit-26,"Stale fag smoke, an overcooked (burnt) breakfast, Stella, boak and suncream.
319
+
320
+ So like Benidorm basically.",0.0,0.0,0.0,0.0,0.0
321
+ GB-Reddit-27,"the chippy, stella, crackhead piss and stale fags",1.0,0.0,0.0,1.0,1.0
322
+ GB-Reddit-28,"No it’s absolutely not normal.
323
+
324
+ It might be normal if his whole family has a drug problem but honestly I wouldn’t go near a family like that with a barge pole. You’re just asking for trouble 🚩🚩🚩",0.0,0.0,0.0,0.0,0.0
325
+ GB-Reddit-29,"Wait, you're telling me that as a non-Pole I'm allowed to enter Polish shops?!",0.0,1.0,1.0,0.0,1.0
326
+ GB-Reddit-30,Poof buster (Phil) he once sat on a poofé (soft bean bag type thing) and it burst,0.0,0.0,0.0,0.0,0.0
327
+ GB-Reddit-31,This pole does not speak for all EU truckers. I wouldn’t worry about him.,0.0,0.0,0.0,0.0,0.0
328
+ GB-Reddit-32,I'm a food snob (wouldn't touch walkers with a barge pole) but pretty much all tescos own brand food is excellent these days I find.,0.0,0.0,0.0,0.0,0.0
329
+ GB-Reddit-33,"Maybe visit a strip club and visit your fellow Poles?
330
+ If you're lucky one of the women might even have a dance on you. Oi oi",0.0,1.0,1.0,1.0,1.0
331
+ GB-Reddit-34,It’s a pity these shops generally aren’t licensed to sell booze because the Poles do some very good beer.,0.0,0.0,0.0,0.0,0.0
332
+ GB-Reddit-35,Random thought if you put a dash between paki-Stan are being really racist to a guy name Stan,0.0,1.0,1.0,0.0,0.0
333
+ GB-Reddit-36,London’s safer than America but Manchester or Brighton are (slighter) cheaper and much nicer and have more accessible communities of queer and trans people.,0.0,0.0,0.0,0.0,0.0
334
+ GB-Reddit-37,"im not trans, but i am a queer woman. thank you for putting yourself out there to try and help better educate our country!!!",0.0,0.0,0.0,0.0,0.0
335
+ GB-Reddit-38,"I used to work as a barman in the ‘Washington’ Llandudno, it was gay night every Thursday, and it was always packed.
336
+
337
+ There’s a lot of gays up north, they’re just spread out everywhere.",0.0,0.0,0.0,0.0,0.0
338
+ GB-Reddit-39,The bbc don’t give a shit about the safety of queer people. We’re headlines and targets and nothing more.,0.0,0.0,0.0,0.0,0.0
339
+ GB-Reddit-40,"Amazing it took this long. It's soccer, a game full of the gays I'm sure.",1.0,0.0,1.0,1.0,1.0
340
+ GB-Reddit-41,"Gays getting HIV - Sleep
341
+
342
+ Straights getting HIV - Real shit",1.0,1.0,1.0,1.0,1.0
343
+ GB-Reddit-42,Jesus im one of those awful gays. I dont care . I literally fought to be proud of me and ill fight for his free speech.,0.0,0.0,0.0,0.0,0.0
344
+ GB-Reddit-43,I think people should just leave the ~~homosexuals about~~ gays alone. They aren't disturbing them. Just leave them alone. They are harmless.,0.0,0.0,0.0,0.0,0.0
345
+ GB-Reddit-44,Its not like it was entirely unknown that these people weren't straight. It is always good to have this sort of queer history spotlighted more though.,0.0,0.0,0.0,0.0,0.0
346
+ GB-Reddit-45,Beware of the gays..... They're fabulous.,0.0,0.0,0.0,0.0,0.0
347
+ GB-Reddit-46,Those gays,1.0,1.0,1.0,1.0,1.0
348
+ GB-Reddit-47,"I told an American friend once online that I'll be right back and that I was off to smoke a fag. Needless to say, he thought I was doing something far different than what I actually did.",0.0,0.0,0.0,0.0,0.0
349
+ GB-Reddit-48,"Does the person expect all musicals about gays to be called ""Gay! A gay musical""?",0.0,0.0,0.0,1.0,0.0
350
+ GB-Reddit-49,"“The samples won’t delay, but the cables—“
351
+
352
+ “There’s another way. Say something. Anything.”
353
+
354
+ “I DIDN’T REALISE THIS SHOW WAS ABOUT GAYS!”
355
+
356
+ “…anything but that.”",1.0,1.0,1.0,0.0,0.0
357
+ GB-Reddit-50,"Wait, the gays have infiltrated musical theatre as well now? /s",1.0,1.0,1.0,1.0,1.0
358
+ GB-Reddit-51,I thought rent was awful. But it had nothing to do with gays and more to do with it being inaudible.,0.0,1.0,0.0,0.0,0.0
359
+ GB-Reddit-52,"I had no idea Rent was about gays but it wouldn't stop me from enjoying it, if a story about gays is entertaining, i'm more than happy to be entertained.",0.0,1.0,1.0,0.0,0.0
360
+ GB-Reddit-53,Gays have cards? are they sparkly?,1.0,1.0,1.0,0.0,0.0
361
+ GB-Reddit-54,I'm getting *really* worried about the future of the SNP now and about Queer rights in Scotland.,0.0,0.0,0.0,0.0,0.0
362
+ GB-Reddit-55,"Glasgow - Katie’s Bar, Delmonicas, Speakeasy, the Waterloo, Bonjour, Polo, AXM. They also have drag nights at the Cathouse.
363
+
364
+ Also a great queer book shop in the southside called Category Is…",0.0,0.0,0.0,0.0,0.0
365
+ GB-Reddit-56,"Yet we're still dithering lest we offend the God botherers.
366
+
367
+ End this now.",0.0,0.0,1.0,1.0,0.0
368
+ GB-Reddit-57,"If ""the gays"" are this powerful then they should be running the place.",0.0,0.0,0.0,1.0,1.0
369
+ GB-Reddit-58,"Morgan freeman: there were, in fact, many gays.",0.0,1.0,0.0,0.0,1.0
370
+ GB-Reddit-59,"The gays, THEY STOLE THE RAINBOW FROM US....
371
+
372
+ such a gay complaint",1.0,0.0,1.0,1.0,1.0
373
+ GB-Reddit-60,"I'm queer, and i've never said ""yass"" in place of ""yes"".",0.0,0.0,0.0,0.0,0.0
374
+ GB-Reddit-61,"cardiff here and yeah noone cares, legit be as queer as you want",0.0,0.0,0.0,0.0,0.0
375
+ GB-Reddit-62,"Cannot prove existence of God
376
+
377
+ Can prove some men like cock
378
+
379
+ Gays win",0.0,0.0,1.0,1.0,1.0
380
+ GB-Reddit-63,"Honestly whoever is directing it, the utilisation of women vs the queers* as the next episode of Culture Wars I'm really not loving it.
381
+
382
+
383
+
384
+ *As one of them I allow myself to say that word folks.",1.0,1.0,1.0,0.0,0.0
385
+ GB-Reddit-64,"Speaking as a lesbian, I have yet another reason to think facebook is a load of shit.
386
+
387
+ &#x200B;
388
+
389
+ I mean, I am literally a devil dyke.",0.0,0.0,0.0,0.0,0.0
390
+ GB-Reddit-65,I guess the story of the little Dutch boy who stuck his finger in the dyke/dijk wouldn't be acceptable then.,0.0,0.0,0.0,1.0,0.0
391
+ GB-Reddit-66,I (not a native speaker) thought the Devils part was offensive rather than the Dyke part... Now I know another word which I should never use!,0.0,0.0,0.0,0.0,0.0
392
+ GB-Reddit-67,And Boris already hates dykes,1.0,0.0,1.0,0.0,1.0
393
+ GB-Reddit-68,"There was a british documentary series about Thai Ladyboys a while back. ( cant remember what Channel, probably 4 ).
394
+
395
+ Really fascinating stuff.
396
+
397
+ Not sure what their show would be about though?",0.0,0.0,0.0,0.0,0.0
398
+ GB-Reddit-69,"I don't know why people are proud to be Nazi's, they *lost*. Why would you want to be associated with a bunch losers.",0.0,0.0,0.0,0.0,0.0
399
+ GB-Reddit-70,Nazi's claiming Churchill as their hero is like a poo worshipping toilet roll.,0.0,0.0,0.0,1.0,0.0
400
+ GB-Reddit-71,Look on the plus side... he hates Nazi's!,0.0,1.0,0.0,0.0,0.0
401
+ GB-Reddit-72,I'm thinking something involving faggots.,1.0,1.0,1.0,1.0,1.0
402
+ ZA-YouTube-0,"We blacks must stop 🛑 visiting white owned resorts , they only want your money, while they see you as Monkey 🙈",0.0,1.0,1.0,1.0,1.0
403
+ ZA-YouTube-1,"Who can imitate a mumu like Malema, he is not even a South African, this is why he behaves like his kwerekwere brothers and sisters. He thinks everyone is a prostitute and drug addicts.",1.0,1.0,0.0,1.0,1.0
404
+ ZA-YouTube-2,But k don't blame them kwerekweres March and demand also.Why can't they,0.0,0.0,0.0,1.0,0.0
405
+ ZA-YouTube-3,"Do away with race classification, jobs for all, rainbow 🌈 nation",0.0,0.0,0.0,0.0,0.0
406
+ ZA-YouTube-4,Affirmative action turned the rainbow 🌈 completely black.,1.0,1.0,1.0,0.0,1.0
407
+ ZA-YouTube-5,@USER  I've always thought that letting a terrorist group run our country was a bad idea...,0.0,1.0,0.0,1.0,0.0
408
+ ZA-YouTube-6,Wow. Rainbow 🌈 turned completely black😅,0.0,0.0,0.0,1.0,1.0
409
+ ZA-YouTube-7,Yes. 100 percent correct. Rainbow 🌈 turned completely black😅,0.0,0.0,0.0,1.0,0.0
410
+ ZA-YouTube-8,America is terrorists,1.0,0.0,1.0,1.0,1.0
411
+ ZA-YouTube-9,"The arrogance, sanctimonious and self-righteous attitude displayed by farmers who stole land rejecting compensation from the very people they wronged. Even satan is in awe.",0.0,0.0,0.0,0.0,1.0
412
+ ZA-YouTube-10,You’d swear white people are a living Satan the way they resold in this comment section. They act like devils or possessed,1.0,1.0,1.0,1.0,1.0
413
+ ZA-YouTube-11,Killl the BOER the FARMER!!!!! BRRRR POW! POW!,1.0,1.0,1.0,1.0,1.0
414
+ ZA-YouTube-12,He's right. I have to work with Boers in Australia and they deserve anything they get.,1.0,1.0,0.0,0.0,1.0
415
+ ZA-YouTube-13,😂😂 Sings kill the boer. While the boer protects him. Brains uziko,0.0,1.0,0.0,1.0,0.0
416
+ ZA-YouTube-14,Every Boer needs a job unfortunately. 😂,0.0,1.0,1.0,0.0,0.0
417
+ ZA-YouTube-15,Iff you wound stop the song kill the farmer kill the boer than whe will sing kill the joutkop kill the blacks is that ok with you malema,1.0,1.0,1.0,1.0,1.0
418
+ ZA-YouTube-16,"Lol, guess he will meet the boers who killed his ancestors. 😂",0.0,1.0,1.0,1.0,0.0
419
+ ZA-YouTube-17,This man is a terrorist aiming to divide our nation and encite violence while he rakes in millions and lives in luxury we are dying. He is worse than Robert. Wake up people. Get rid of this dictator,0.0,0.0,0.0,0.0,1.0
420
+ ZA-YouTube-18,"When Penny Sparrow wrote about blacks as monkeys she was fined R150000
421
+ The judge who said that Malemas rhetoric is not hate speech is either very sick or eff member",0.0,0.0,0.0,0.0,0.0
422
+ ZA-YouTube-19,YOU DELUSIONAL COLONIZER YOU DONT EVEN BELONG ON THE LAND. YOU'RE THE ONLY TERRORIST YOU PALE HYPOCRITE,1.0,1.0,1.0,1.0,1.0
423
+ ZA-YouTube-20,"BE CAREFULL IT DOESNT BACK FIRE ON THE EFF,AND THAT THE BOER KILLS THE ONES SING THIS SONG.
424
+ EVEN THE COURTS ARE ON THE EFF SIDE ,THIS WILL START VERY SERIOUSE ACTIONS AGAINST THE EFF.",0.0,0.0,0.0,0.0,1.0
425
+ ZA-YouTube-21,😊 i like the version of kiss 💋 the boer kiss the farmer,0.0,0.0,0.0,0.0,0.0
426
+ ZA-YouTube-22,Why cant they sing love the boer? It is not about freedom it is about unity! It does stir violence. They are provoking violence. The boer will defend themselves.,0.0,0.0,0.0,0.0,0.0
427
+ ZA-YouTube-23,Kill the boer heah 🎶🎶🎶🕺🕺🕺,1.0,1.0,1.0,1.0,1.0
428
+ ZA-YouTube-24,let him sing . He is uniting the boers again .,0.0,0.0,0.0,0.0,0.0
429
+ ZA-YouTube-25,Yes...'Kill the Boer Kill the Farmer' ✊🏾,1.0,1.0,1.0,1.0,0.0
430
+ ZA-YouTube-26,"This song really escalate violence,the meaning is clear,no translation needed,if the Boers can call us Kafirs are we gonna be happy,being called that?",0.0,0.0,1.0,0.0,0.0
431
+ ZA-YouTube-27,"Before you guys forget, kiss the boer kiss the farmer, we will sing it and make it amapiano",0.0,0.0,0.0,1.0,0.0
432
+ ZA-YouTube-28,"If the eff says dont take this song literally then we can also sing along "" kill the boer kill the farmer and the farmworkers ...and shoot to kill..nothing wrong with that 🤔",0.0,1.0,0.0,0.0,0.0
433
+ ZA-YouTube-29,For you saying a political party celebration is a terrorist gathering will cause them to terrorize you. Your way of thinking is questionable.,0.0,0.0,0.0,0.0,0.0
434
+ ZA-YouTube-30,"If you are complicit in terrorist activities than that is what you are.
435
+ You cant say farm murders are crimes. Its terrorist activities that target white people and white farmers.",0.0,1.0,0.0,0.0,0.0
436
+ ZA-YouTube-31,So what about the old flag that allso an old fag but banned why that is only a emblem but to me kill a boer means you can kill a boer thats ok.,1.0,1.0,1.0,1.0,1.0
437
+ ZA-YouTube-32,How can you say singing kill the blacks is not ok but kill the boer is fine. Jy kan baie k@USER praat neh.,1.0,0.0,1.0,0.0,0.0
438
+ ZA-YouTube-33,Uncultured kill the boer singer😂,1.0,0.0,0.0,0.0,0.0
439
+ ZA-YouTube-34,Terrorists are terrorists. They have no country. Raise public awareness against the terrorists and help the police to take stern actions against the terrorists.,0.0,0.0,0.0,0.0,0.0
440
+ ZA-YouTube-35,"Ey... those ones are the biggest terrorists, these NGO's have an underlying agenda with SA",0.0,1.0,1.0,0.0,0.0
441
+ ZA-YouTube-36,ANC doesn't care about our safety and security everyone just flock to SA even terrorists are here 😭😭😭😭,0.0,0.0,0.0,0.0,0.0
442
+ ZA-YouTube-37,"Detain and deport all kwerekwere diplomats, and sever all ties with kwerekwere jungle governments",0.0,1.0,1.0,1.0,1.0
443
+ ZA-YouTube-38,@USER  I'm not South African. I'm a stinking kwerekwere from zimbabwe.,1.0,0.0,1.0,1.0,1.0
444
+ ZA-YouTube-39,Yea them Boers are still here since 1652 but no attack on Dem lol😂😂😂😂,0.0,0.0,0.0,1.0,0.0
445
+ ZA-YouTube-40,"Bob, we've never interfered in the affairs of your country, so shut that kwerekwere mouth of yours!",1.0,1.0,1.0,1.0,1.0
446
+ ZA-YouTube-41,Even the boers thought we were domkops until June 16 happened and there was no turning back!,0.0,1.0,1.0,0.0,0.0
447
+ ZA-YouTube-42,Nonsense is your president in kwerekwere country hamba we don't care go home,0.0,1.0,1.0,1.0,1.0
448
+ ZA-YouTube-43,At least there's no crooked ministers always wanting to eat,0.0,0.0,0.0,0.0,0.0
449
+ ZA-YouTube-44,Soon only the monkeys will be left at the circus,0.0,0.0,1.0,0.0,0.0
450
+ ZA-YouTube-45,Haibo ma sasafrika amahle R300 only? They should do better. I would pay at least 5 figures for that. I guess since the Pakistanis were not Kwerekweres or foreigners they got a huge discount 😂,0.0,1.0,1.0,1.0,1.0
451
+ ZA-YouTube-46,"@USER yeah,I’m having a threeway with Satan and Lucifer",0.0,0.0,0.0,0.0,0.0
452
+ ZA-YouTube-47,@USER  you respect satans homophobic community???????,0.0,0.0,0.0,1.0,1.0
453
+ ZA-YouTube-48,@USER  yes we understand ur need to support satan. Shame you like satan though this much to support the Devil this way.,0.0,0.0,0.0,0.0,0.0
454
+ ZA-YouTube-49,he is wrong for doing satans work,0.0,0.0,0.0,0.0,0.0
455
+ ZA-YouTube-50,@USER  you are wrong as you knew and your not a real christian so .... who cares what you say old bean? Go pray to satan as you do sound as if u do anyway.,1.0,0.0,1.0,1.0,1.0
456
+ ZA-YouTube-51,"​ @USER  kwerekwere really? When racists are kicking your but in South Africa. You need to learn and educate yourself about who you are, you are lost.",0.0,0.0,1.0,1.0,0.0
457
+ ZA-YouTube-52,haa Malema didn't you say you have joined the Lamba Jews? what are the Lamba Jews views about this?,0.0,0.0,0.0,0.0,0.0
458
+ ZA-YouTube-53,"We want our rainbow back 😢
459
+
460
+ Eff is for gays, only gay people must vote eff.",1.0,1.0,1.0,1.0,0.0
461
+ ZA-YouTube-54,"Rights ,hahahahaa what bullshit this rainbow bullshit.",1.0,0.0,1.0,0.0,0.0
462
+ ZA-YouTube-55,What about the rights of Christians. The rainbow belings to God not the gays,1.0,1.0,1.0,0.0,1.0
463
+ ZA-YouTube-56,If you want to be stupid go to west not in Africa no room for homosexual in Africa ✊✊✊,1.0,1.0,1.0,1.0,1.0
464
+ ZA-YouTube-57,Nazi fascist kukluxklan criminals genocidal USA NATO uk Israel Ukraine. These demon satan worshipers FOLLOWERS must be neutralized.,1.0,1.0,1.0,1.0,1.0
465
+ ZA-YouTube-58,no one cares... Long live Uganda !!! Stand strong Africa. Protect the children from the rainbow mafia. 🫡,0.0,1.0,1.0,0.0,1.0
466
+ ZA-YouTube-59,"""Shame poor man,, Satan took over in our lives...😭😭🙏🏽",0.0,0.0,0.0,0.0,0.0
467
+ ZA-YouTube-60,Hahahahaaaaaa and you stupid people don't understand how come south africa is such a cursed country! Keep on hating Israel and being jealous of the Jews 🎉🎉🎉🎉😂😂😂😂😂😂,1.0,1.0,1.0,1.0,1.0
468
+ ZA-YouTube-61,You Ashkenazi are being punished by Yah. Fake Jews,1.0,1.0,1.0,1.0,1.0
469
+ ZA-YouTube-62,Has everyone forgotten that Hamas is an officially recognised terrorist organisation by the UN ???,0.0,0.0,0.0,0.0,0.0
470
+ ZA-YouTube-63,@USER  Hamas is like our ANC back in the day. They are not terrorists. ISIS is a terrorist org. Not Hamas they are the only source of defence,0.0,0.0,0.0,0.0,0.0
471
+ ZA-YouTube-64,"dont forget, umkhonto we sizwe who was tasked with fighting the Apartheid government, was also seen as terrorists",0.0,0.0,0.0,0.0,0.0
472
+ ZA-YouTube-65,"Russia on the border of Ukraine. Jews vs Christians and Muslims in Jerusalem. Chinese want to take Tawian back , difficulty with Australia as well. Stay safe all.",0.0,0.0,0.0,0.0,0.0
473
+ ZA-Reddit-0,"As a rule-of-thumb, what monkeys eat is safe for humans. SA has a lot of monkeys.",0.0,0.0,0.0,0.0,1.0
474
+ ZA-Reddit-1,It’s because they’re being trained in Pretoria by Jews to be [snipers](URL),0.0,0.0,1.0,0.0,0.0
475
+ ZA-Reddit-2,"Reading this thread has turned me into a communist, the morality and values of rich Boers is some real upside-down twisted shit lmao",0.0,0.0,1.0,1.0,1.0
476
+ ZA-Reddit-3,"Monkey see monkey do. We are sheep and are driven by clicks. Even if we like to think you have an original thought in your mind, you don't. An unfortunate reality that won't change for years.",0.0,0.0,0.0,0.0,0.0
477
+ ZA-Reddit-4,Hotnot is the insult,0.0,0.0,0.0,0.0,0.0
478
+ ZA-Reddit-5,"Hottentots Holland is the name of the HS i went to and the name is unchanged so im guessing, NO.",0.0,0.0,0.0,0.0,0.0
479
+ ZA-Reddit-6,"I had no idea ""rainbow donut"" was a thing",0.0,0.0,0.0,0.0,0.0
480
+ ZA-Reddit-7,The rainbow is a lie.,0.0,0.0,0.0,0.0,0.0
481
+ ZA-Reddit-8,"This is a very sweet message, thank you for posting, OP. Wishing you a lovely week ahead. <3
482
+
483
+ But now you've made me wish for a rainbow doughnut and my fat ass can't stop thinking about it. xD",0.0,0.0,0.0,0.0,0.0
484
+ ZA-Reddit-9,"As a South African white male, your age. Trump is a cunt. And an idiot",0.0,0.0,0.0,0.0,1.0
485
+ ZA-Reddit-10,"Just like Jews are white when it suits them, and Jews when it doesn't.",1.0,1.0,1.0,1.0,1.0
486
+ ZA-Reddit-11,Cape Town has so many of these dumb cunts in their Volkswagens,0.0,0.0,0.0,0.0,0.0
487
+ ZA-Reddit-12,"Maybe ""Kill the boer, Brr Paa Paa"" didn't give the world confidence of stability of SA economy.
488
+
489
+ They dont seem to see it as a struggle chant instead of a statement of intent.",0.0,0.0,0.0,0.0,0.0
490
+ ZA-Reddit-13,Elon Musk tweeted about the EFF's Kill the boer.,0.0,0.0,0.0,0.0,0.0
491
+ ZA-Reddit-14,"Definitely has to do with “Kill the Boer”
492
+
493
+ Rand is weakening, even to the Euro.
494
+
495
+ As it seemed to be getting stronger something happens again.",0.0,0.0,0.0,0.0,0.0
496
+ ZA-Reddit-15,"That boer pampoene song always hits definitely watch the music videos
497
+
498
+ Berry hoener
499
+ Bob Jan
500
+
501
+ And maybe captuin van die syler",0.0,0.0,0.0,0.0,0.0
502
+ ZA-Reddit-16,"Poplak: you are a disgusting sack of molding shit. How that for ‘satire’, you urban son of a toothless whore?",0.0,0.0,0.0,1.0,0.0
503
+ ZA-Reddit-17,"A Jew talking about genocide , no surprise there",1.0,1.0,1.0,1.0,1.0
504
+ ZA-Reddit-18,Poplak's other quote should get more attention: Singing “Kill the Boer” while wearing Gucci loafers is just cosplay by a racketeer masquerading as a politician.,0.0,0.0,0.0,0.0,0.0
505
+ ZA-Reddit-19,Amazing. Kudos to the Poles. Fuck these ANC cunt nuggets.,1.0,1.0,1.0,0.0,1.0
506
+ ZA-Reddit-20,"We don't really give a fuck what you're into, aslong as it doesn't influence me or my kids lives. Do your thing cunts.",1.0,0.0,0.0,0.0,0.0
507
+ ZA-Reddit-21,"I said yes, because fuck that murderous cunt.",0.0,0.0,0.0,0.0,0.0
508
+ ZA-Reddit-22,"\>afriforum>right wing
509
+
510
+ for fuck sakes...
511
+
512
+
513
+ edit: ""kiss"" the boer.. for fuck sakes....!",0.0,0.0,0.0,0.0,1.0
514
+ ZA-Reddit-23,"Terrorist is not the right word anymore, it just describes a part of their character. They have expanded in mean time.",1.0,0.0,0.0,0.0,0.0
515
+ ZA-Reddit-24,How are these dumb cunts so fucking retarded,0.0,1.0,1.0,0.0,0.0
516
+ ZA-Reddit-25,At what stage do we declare the EFF a terrorist entity? It should have happened 8 years ago.,0.0,0.0,0.0,0.0,0.0
517
+ ZA-Reddit-26,I would also recommend Moffie,0.0,0.0,0.0,1.0,0.0
518
+ ZA-Reddit-27,"Let me just make sure I'm getting this. Posting a video of a monkey breaking tiles off a roof and captioning it with, ""eff takeover"", is a no no, right?",0.0,0.0,0.0,1.0,0.0
519
+ ZA-Reddit-28,"Hypothetically, what about calling the DA monkeys?
520
+
521
+ No go I assume?",0.0,0.0,0.0,1.0,0.0
522
+ ZA-Reddit-29,"""... Saying they [The DA] should be shot isn't""
523
+
524
+ The court ruled that ""Shoot the Boer"" is protected speech.",0.0,0.0,0.0,1.0,0.0
525
+ ZA-Reddit-30,"The bad guys are always ""terrorists"" aren't they?",0.0,0.0,0.0,0.0,0.0
526
+ ZA-Reddit-31,"Wait, what? Why are South African soldiers fighting terrorists in Mozambique???",0.0,0.0,0.0,0.0,0.0
527
+ ZA-Reddit-32,Are they looking for ISIS terrorists?,0.0,0.0,0.0,0.0,0.0
528
+ ZA-Reddit-33,Anyone remember how a few months ago r/southafrica was convinced that sending troops to Moz would result in tons of terrorist attacks?,0.0,0.0,0.0,0.0,0.0
529
+ ZA-Reddit-34,Why are people in this thread arguing what we should name the terrorist groups? Lmao it seems agressively pointless,0.0,0.0,0.0,0.0,0.0
530
+ ZA-Reddit-35,Nobody else mentioning anywhere the fact that the ANC are nothing more than a bunch of terrorists and have been terrorising the people of this country for decades.,0.0,1.0,0.0,0.0,1.0
531
+ ZA-Reddit-36,What a shit terrorist can you be if anyone knows more or less when you are arriving? Sounds like something the EFF is capable of arranging.,0.0,0.0,1.0,1.0,1.0
532
+ ZA-Reddit-37,"😭 Why us we already have enough issues, doesn’t make sense, which Terrorist groups are active in SA ?",0.0,0.0,0.0,0.0,0.0
533
+ ZA-Reddit-38,You think the ANC would have sympathy with not wanting to be caledon a terrorist organisation,0.0,0.0,0.0,0.0,1.0
534
+ ZA-Reddit-39,Who are/is the “terrorist” you’re referring to in the title,0.0,0.0,0.0,0.0,0.0
535
+ ZA-Reddit-40,"They're not terrorists they're fReEdOm FiGhTeRs.
536
+
537
+ Just like how when the ANC necklaced BLACK people they were freedom fighters, or when they bombed innocent civilians.",1.0,1.0,1.0,0.0,0.0
538
+ ZA-Reddit-41,"If I were a terrorist and planning an attack in Sandton, then read in the news that they knew about it, I would just change areas. So Sandton is probably the safest place this weekend",0.0,0.0,0.0,0.0,0.0
539
+ ZA-Reddit-42,"It's equivalent to Boy, Darkie, Preet, K word, Chink &China, also not excluding boer and colonisers. It's not just one derogatory word it is a collective group",0.0,0.0,1.0,0.0,0.0
540
+ ZA-Reddit-43,"I remember ""coolie creepers"" in Eastern Cape. Kinda like a googly I think in cricket.
541
+
542
+ Anyone else?",0.0,0.0,0.0,0.0,0.0
543
+ ZA-Reddit-44,"Indian here. Calling us charous, bread ous, slam ous porridge ous are fine. Never coolie/ koolies unless you wanna get smacked and booted.",0.0,0.0,0.0,0.0,0.0
544
+ ZA-Reddit-45,Possibly coconut-ice.,0.0,0.0,0.0,0.0,0.0
545
+ ZA-Reddit-46,Could be coconut ice if it has coconut flakes in it.,0.0,0.0,0.0,0.0,0.0
546
+ ZA-Reddit-47,Coconut worms. Delicious.,0.0,0.0,0.0,0.0,0.0
547
+ ZA-Reddit-48,"I'm European and yeah whats up with that?
548
+ All i learned about africa was about the first monkey humans, and then egypt slave times.",1.0,1.0,1.0,1.0,1.0
549
+ ZA-Reddit-49,"A crisis created by you amd yours and your chommies in the ANC fix your own fuck ups, oh yes, I forgot, you're too fokken dom. Full of hot air and nothing else, get fucked cunt.",1.0,0.0,0.0,1.0,1.0
550
+ ZA-Reddit-50,Satan Africa,1.0,1.0,1.0,1.0,1.0
551
+ ZA-Reddit-51,"Why would Boers fighting the English use a union jack in their flag? Use a Vierkleur or a Transvaal flag, lol.",0.0,0.0,0.0,1.0,0.0
552
+ ZA-Reddit-52,"Boer maak n’plan.
553
+
554
+ Look, I don’t know when you need to action your plan, but you need to have a plan.
555
+
556
+ You may also want to explore options for moving to WC.",0.0,0.0,0.0,0.0,0.0
557
+ ZA-Reddit-53,How long before the racist apologists crawl out to claim Boer actually means cop or Kill the Boer means overthrow the system??,0.0,1.0,1.0,0.0,1.0
558
+ ZA-Reddit-54,"""Kill the Boer"" is blatant hate speech and Americans should focus on their own problems.",0.0,0.0,0.0,1.0,0.0
559
+ ZA-Reddit-55,"Can Boers sing ""Kill Malema""?",0.0,0.0,0.0,1.0,0.0
560
+ ZA-Reddit-56,"Kill the boer is a struggle song it'll remain that way, whether you like it or not.",0.0,0.0,0.0,0.0,0.0
561
+ ZA-Reddit-57,"I wonder when people will recognize the EFF for what it really is. It's not a political party, it's a terrorist organization.",0.0,0.0,0.0,1.0,0.0
562
+ ZA-Reddit-58,When he says “boer” who exactly is he referring to in this context? All Afrikaans people? All White people? Farmers? All the above?,0.0,0.0,0.0,0.0,0.0
563
+ ZA-Reddit-59,You won't catch a boer in American overalls.,0.0,0.0,0.0,0.0,0.0
564
+ ZA-Reddit-60,The AI knew to give a boer seun a Mauser.,0.0,0.0,0.0,0.0,0.0
565
+ ZA-Reddit-61,Few people know that the concentration camp concept which was widely used in WW2 by the nazis was first perfected in South Africa during the Boer war's by the British.,0.0,0.0,0.0,0.0,0.0
566
+ ZA-Reddit-62,"The Boers gave them a good run for their money on biltong and rusks.
567
+
568
+ Edit : /s just in case.",0.0,0.0,0.0,0.0,0.0
569
+ ZA-Reddit-63,"> Turns out Conor McGregor was a South African army general during the Boer War. Picture from the 30s:
570
+
571
+ FTFY. I think.",0.0,0.0,0.0,0.0,0.0
572
+ ZA-Reddit-64,"See it this way. If the word boer was replaced with a religious, ethnic, or social group would it be seen as okay to sing? Would it even be a debate?",0.0,0.0,0.0,0.0,0.0
573
+ ZA-Reddit-65,"That's a cult.
574
+
575
+ Also I'm a white south african. These ouens are kak, cunts.",1.0,1.0,1.0,0.0,1.0
576
+ ZA-Reddit-66,"Apparently, Julius replied with masepa (cunt) to Elon Musk Watch how Julius account gets banned from X. Elon should ban all political parties from X",0.0,0.0,0.0,0.0,0.0
577
+ ZA-Reddit-67,"Just don't call him a monkey, literally, or illiterately, for that matter. You'll go to jail, literally, even if if you did not mean he is a literal monkey.",0.0,0.0,0.0,0.0,0.0
578
+ ZA-Reddit-68,Aaaah fuck. I read Boer War Recommendations..... As if where to hold it..... Well have a nice read.,0.0,0.0,0.0,0.0,0.0
579
+ ZA-Reddit-69,So when do the sing kill the boer in this video ?,0.0,1.0,0.0,0.0,0.0
580
+ ZA-Reddit-70,"EFF is a terrorist organization know doubt. Why was the white women trying to stop it by herself, just call the cops.",1.0,1.0,0.0,1.0,0.0
581
+ ZA-Reddit-71,"This is what happens when BEE is brought into academia.
582
+
583
+ ""You must not ask a monkey to do a lion's job.""
584
+ Kenyan proverb.",0.0,0.0,1.0,1.0,0.0
585
+ ZA-Reddit-72,Hey PIC stop being racist cunts,0.0,0.0,0.0,0.0,1.0
586
+ ZA-Reddit-73,This is sad that farmers ask for this. The fact that the fat cunts in the ANC is so obsessed with themselves that all the police are patrolling their houses.,0.0,0.0,1.0,1.0,1.0
587
+ ZA-Reddit-74,"What about if we listen to all the experts, and not just a few? Perhaps the OP is a stupid cunt? And can't think critically?",0.0,0.0,0.0,0.0,0.0
588
+ ZA-Reddit-75,"Wow a brand new Homo, a lot of them have been found in South Africa",1.0,1.0,1.0,1.0,1.0
589
+ ZA-Reddit-76,"so, kill the boer...except if he's gay.
590
+
591
+ strange, but im sure my white brothers and sister will appreciate it.",1.0,1.0,1.0,1.0,1.0
592
+ ZA-Reddit-77,The same reason the government is not labeled as terrorists/criminal organisation,0.0,0.0,0.0,0.0,0.0
593
+ ZA-Reddit-78,"Attention whore, nothing more. Maybe he'll get a rugby game when this is all over, but I doubt it.",0.0,0.0,0.0,0.0,0.0
594
+ ZA-Reddit-79,"This is silly, you think they would travel all the way to conduct terrorist attacks.",0.0,0.0,0.0,0.0,0.0
595
+ ZA-Reddit-80,Not going to lie that unicorn lunch box from Satan sounds like a vibe🤣 gave me a good chuckle!,0.0,0.0,0.0,0.0,0.0
596
+ ZA-Reddit-81,What's so EFFing special about you EFFing Jews?,1.0,1.0,1.0,1.0,1.0
597
+ ZA-Reddit-82,"Leaving aside the fucking BIZARRE comment about Jews, Julius is apparently now making it clear that he's opposed to mandatory vaccines. I find it interesting how little reaction this has drawn.",0.0,0.0,0.0,0.0,0.0
598
+ ZA-Reddit-83,I agree...bugger that...my mom used to say it until I told her what it means...anyway...I have nothing to do with Jews said my Dad during WW2...,0.0,0.0,1.0,0.0,0.0
599
+ SG-YouTube-0,I am Singaporean Chinese buti love my china Chinese mate,0.0,0.0,0.0,0.0,0.0
600
+ SG-YouTube-1,"@USER  those day we are living in Ang mo chu, not adap chu.",0.0,0.0,0.0,0.0,0.0
601
+ SG-YouTube-2,@USER  fir jab masjid hum tod denge fir mat rona 😂😂😂😂,0.0,0.0,0.0,0.0,0.0
602
+ SG-YouTube-3,"These scammers scam our moneys, so please do not give in to china demand for the moneys, heard they sending a vice minister here for their illegal gains.",0.0,1.0,1.0,1.0,1.0
603
+ SG-YouTube-4,Send back pinoy manager send alllll back pinoy,1.0,1.0,1.0,0.0,1.0
604
+ SG-YouTube-5,Farah kong pinoy is goood worker so call. most of them Prefer their own kind when come hired,1.0,1.0,1.0,0.0,1.0
605
+ SG-YouTube-6,"Indian 🇮🇳 workers are smarter, cheaper, and 10 years younger than the Chinese counterparts.
606
+ - Who wouldn't love that?",0.0,1.0,1.0,1.0,1.0
607
+ SG-YouTube-7,@USER  asshole see china and usa first,1.0,0.0,0.0,0.0,0.0
608
+ SG-YouTube-8,"Well done 👍 China 🇨🇳
609
+ Taking revenge by virus 🦠 from Indians",1.0,1.0,1.0,1.0,1.0
610
+ SG-YouTube-9,all assembled chinese parts 😂,0.0,1.0,0.0,0.0,0.0
611
+ SG-YouTube-10,Lol xi claims south china sea part of Malaysia Indonesia had birder disputes with Kazakhstan and what not.,0.0,0.0,0.0,0.0,0.0
612
+ SG-YouTube-11,"other way around, Chinese will exit Brics as the members are all close to India than to loan shark China. 😁",0.0,0.0,0.0,1.0,1.0
613
+ SG-YouTube-12,Boy..what a question is that…u can do nothing about it can u…India too can have its own map that irritates china ..and china can do nothing about it.,0.0,0.0,0.0,0.0,0.0
614
+ SG-YouTube-13,No worry China gov has so much money,0.0,0.0,0.0,0.0,0.0
615
+ SG-YouTube-14,Singapore take note: China party central will take back the money that moved to Singapore from Hong Kong. It is Chinese money. Also stop making bad news about China,0.0,0.0,0.0,0.0,0.0
616
+ SG-YouTube-15,I giggle when I hear China struggles,0.0,1.0,0.0,1.0,0.0
617
+ SG-YouTube-16,"Ghost cities are everywhere in china, even a decade ago. So why are home buyers of Chinese builders surprised when their houses are not completed and become ghost cities!?",0.0,0.0,0.0,0.0,0.0
618
+ SG-YouTube-17,"Correct, But those China ha-te here are so happy 😅",0.0,1.0,1.0,1.0,0.0
619
+ SG-YouTube-18,"the chinese are risk adverse, wont go to war unless absolutely necessary, they think long game, if china wanted to, it could create miitary parade ten times size of north korea",0.0,0.0,0.0,0.0,0.0
620
+ SG-YouTube-19,"People who respect humanity, not USA , killing people for nothing, quenching for blood, China will takeover Usa soon.",1.0,1.0,0.0,1.0,0.0
621
+ SG-YouTube-20,@USER  The Chinese people all agree that China is and will always be a developing country,0.0,0.0,0.0,0.0,0.0
622
+ SG-YouTube-21,north korea vibe XD china and north korea are like twin commies,0.0,1.0,1.0,0.0,1.0
623
+ SG-YouTube-22,Russia China and north Korea can start the ww3 soon,0.0,0.0,0.0,0.0,0.0
624
+ SG-YouTube-23,Maybe the genius thinks an American and indian alliance is in the best interest of china lol,0.0,0.0,0.0,0.0,0.0
625
+ SG-YouTube-24,"@USER  lol china done it, what you do on that map?",0.0,0.0,0.0,0.0,0.0
626
+ SG-YouTube-25,Singapore will not follow like other Countries to impose TRAVEL RESTRICTIONS TO CHIA CHINESE PEOPLE,0.0,0.0,0.0,0.0,0.0
627
+ SG-YouTube-26,Pls Malaysia does not discriminate against China. It’s for all foreign entry into Malaysia. Don’t lump us with the China haters,0.0,0.0,0.0,0.0,0.0
628
+ SG-YouTube-27,Why??? China has zero transparency on Covid so expect restrictions and bans!!,0.0,0.0,0.0,0.0,0.0
629
+ SG-YouTube-28,This 3 January Malaysia close border to China tourist..,0.0,0.0,0.0,0.0,0.0
630
+ SG-YouTube-29,"Singapore govt is always Tunggu, nanti and then mati 🤣",0.0,0.0,0.0,0.0,0.0
631
+ SG-YouTube-30,they are angry because their plan to infect the world is being checked? these chinese must stay in china!,1.0,1.0,1.0,1.0,1.0
632
+ SG-YouTube-31,@USER  As long you have Chinatown in your country CCP will said your country is part of China. Same as Taiwan just because they speak Chinese and sharing food similarity they are part of China.,0.0,0.0,0.0,0.0,0.0
633
+ SG-YouTube-32,"In time to come, mainland Chinese would be considered like pariahs, given the CCP mismanagement of Wuhan virus. CCP refuse to cooperate with the world on transparency of information",0.0,0.0,0.0,0.0,0.0
634
+ SG-YouTube-33,Many are relatives of china government officials. Thailand should give china a list of buyers so that proper tax levied against them or send those govt officials to jail,0.0,0.0,0.0,0.0,1.0
635
+ SG-YouTube-34,"Bangladesh, India, China FLoods",0.0,0.0,0.0,0.0,0.0
636
+ SG-YouTube-35,"I am proud of sg policies. Bangla today, then PR then citizen . They are most likely muslims can help increase sg population and maintain the muslim ratio",0.0,0.0,0.0,0.0,1.0
637
+ SG-YouTube-36,"@USER  chibai you eat babi at hawker centre, they got put headcover anot",0.0,0.0,1.0,0.0,1.0
638
+ SG-YouTube-37,"Zero Tolerance for radical
639
+ Religous terrorists ideology Acts.",0.0,0.0,0.0,0.0,0.0
640
+ SG-YouTube-38,Lawrence looks stressed… 😂 he’s expected to speak in Malay and mandarin,0.0,0.0,0.0,0.0,0.0
641
+ SG-YouTube-39,"Just put Malay is enough what... Why need to put the ""Singapore"" in it... Haiya, simple thing become complicated.",0.0,0.0,0.0,0.0,0.0
642
+ SG-YouTube-40,@USER  oh really? Then explain why chinese ethnics cannot buy lands in Jogjakarta?,0.0,0.0,0.0,0.0,0.0
643
+ SG-YouTube-41,Malaysia is for everybody. We have millions of Indons bangkaideshi Rohingyas Burmese Pinoys Vietnamese or the Africans..be it legal or illegal. They made this country as theirs now. What a blessing.,0.0,0.0,0.0,0.0,0.0
644
+ SG-YouTube-42,The only way for a Chinese to be PM of Malaysia is by voting for PH✅. For a new Malaysia❤,0.0,0.0,0.0,0.0,0.0
645
+ SG-YouTube-43,@USER Since when Singapore belong to Chinese? If so why do we have Malay and Indian MPs?,0.0,0.0,0.0,0.0,0.0
646
+ SG-YouTube-44,@USER  You were claiming Chinese schools = promote Chinese? Since when? So is Ahmad Ibrahim Sch promoting Malays? Hilarious claims.,0.0,0.0,0.0,0.0,0.0
647
+ SG-YouTube-45,@USER  We do have Malays in Airforce or Navy. Just fewer.,0.0,0.0,0.0,0.0,0.0
648
+ SG-YouTube-46,"Let all those capable lead the country. Respect the Malays, love thy country, we only live once on this earth.",0.0,0.0,0.0,0.0,0.0
649
+ SG-YouTube-47,Not when u have terrorists groups breeding like crazy….. they are overwhelming the progressing and peace loving malays now.,0.0,1.0,1.0,1.0,1.0
650
+ SG-YouTube-48,why malay?do you know that singapore malay are actualy jawa majority?,0.0,0.0,0.0,0.0,0.0
651
+ SG-YouTube-49,"@USER  LHL leaps and bounds better than his father. Till today, I cannot stomach LKY's comments on Malays and how he's eroded our identity. If he's here today high chance kena cancelled.",0.0,0.0,0.0,0.0,0.0
652
+ SG-YouTube-50,I worry that one day it is a must to be gay as society becomes gay…,1.0,1.0,1.0,1.0,1.0
653
+ SG-YouTube-51,"@USER  the coin phrase actually is ""pink money"" that mostly derives from gay tourism. Of course, it would have to be a country or region that's accepting of homosexuals.",0.0,0.0,0.0,0.0,0.0
654
+ SG-YouTube-52,Step 1 accomplished soon 🔜 step 2 😮 Gay marriage,1.0,0.0,0.0,1.0,0.0
655
+ SG-YouTube-53,"I walk at my market every day , i heard some uncle say "" SI ALL CHAO AH GWA "" in chinese . Cause i'm gay too . I feel so sad .",0.0,1.0,0.0,0.0,0.0
656
+ SG-YouTube-54,They should move to Singapore Chinese is prioritize there.,0.0,0.0,0.0,0.0,1.0
657
+ SG-YouTube-55,A Chinese free UK is a better UK.,1.0,1.0,1.0,1.0,1.0
658
+ SG-YouTube-56,The weird thing is his victimes are straight men not gay and he said he want to make them gay because he want them to be free from their monsters girlfriends,0.0,1.0,0.0,1.0,1.0
659
+ SG-YouTube-57,"@USER  emang in Indonesia most of the people are Homophobic, Try gay people in Brunei they have been killed",0.0,1.0,1.0,0.0,1.0
660
+ SG-YouTube-58,Cos the Court has been challenged by Talented Gay lawyers...no one dare to challenge the court till now..cos it violates equal protection provision,0.0,1.0,0.0,0.0,0.0
661
+ SG-YouTube-59,Think the government should still stay put with what they have then to look into this area. But now they are encouraging gay community.,1.0,1.0,0.0,1.0,1.0
662
+ SG-YouTube-60,"Next GE, we will hv a NMP to represent these Ah Gua in parliament.",0.0,0.0,0.0,0.0,1.0
663
+ SG-YouTube-61,@USER  Gay Talents are challenging the law...now that talented lawyers are coming out..,0.0,1.0,0.0,0.0,1.0
664
+ SG-YouTube-62,"So, an Iraqi refugee, in Sweden, burns the ISIS Terror Manual....And that´s a bad deed?",0.0,0.0,0.0,0.0,0.0
665
+ SG-YouTube-63,to talk against China he must have balls of titanium,0.0,0.0,0.0,0.0,0.0
666
+ SG-YouTube-64,The problem of Osama Bin Laden was also his personal problem and it was made a world problem۔ Due to which thousands of people died.,0.0,0.0,0.0,0.0,0.0
667
+ SG-YouTube-65,Communist China and Xi burn Qur@USER each day,1.0,1.0,1.0,1.0,1.0
668
+ SG-YouTube-66,Bro religion did play in politics China for “past 2000 years” what is Confucianism and mandate of Heaven? Bro doesn’t even know history and China only recently become officially atheist,0.0,0.0,0.0,0.0,0.0
669
+ SG-YouTube-67,PAS makes Chinese know their place,1.0,1.0,1.0,1.0,1.0
670
+ SG-YouTube-68,@USER  That's what I do not understand. SG dollar is 3 times more than ringgit but the Malaysian Chinese refuse to migrate. What more do these people want?,0.0,1.0,0.0,0.0,1.0
671
+ SG-YouTube-69,"Tel that girl to go to Iran, they'd love her there! Now I understand China's Xingjiang policy, China doesn't want nonsense to stop her progress.",1.0,0.0,1.0,1.0,1.0
672
+ SG-YouTube-70,"@USER  You just lost your job to a bangla right ?
673
+ I understand ,i lost mine too but i want to show to the church ,temple & mosque
674
+ i am happy. Have 2 beers and stop cursing .🥰🥰🥰🥰🥰🥰🥰🥰🥰",0.0,0.0,0.0,0.0,1.0
675
+ SG-YouTube-71,Unfortunately UN and other countries not responding on the Hindu terrorists in India.,0.0,0.0,0.0,0.0,0.0
676
+ SG-YouTube-72,Just to fill up the quota for chinese woman. That's all.,1.0,1.0,1.0,0.0,0.0
677
+ SG-Reddit-0,"Wow, that whole section on Singaporeanisms/dialect terms.
678
+
679
+ ""We may speak Chinese, but we're not China Chinese"" in a nutshell.",0.0,0.0,0.0,0.0,0.0
680
+ SG-Reddit-1,Is it just me or the malay portion is so positive then the Chinese portion like kena scolding,0.0,1.0,0.0,1.0,0.0
681
+ SG-Reddit-2,Wah Malay portion over so soon. Could listen to him go all day,0.0,0.0,0.0,0.0,0.0
682
+ SG-Reddit-3,friends stall is 30k a month a few years ago after the big reno. i cant find my old pinoy stall anymore,0.0,0.0,0.0,0.0,0.0
683
+ SG-Reddit-4,"So with the repeal of 377A, married men are going to church to have gay sex?",0.0,1.0,1.0,1.0,1.0
684
+ SG-Reddit-5,Looks like no one ever bothered to ask the atheists and agnostics what they thought about the homos and assumed they are all godless hedonists too.,1.0,1.0,1.0,1.0,1.0
685
+ SG-Reddit-6,"I don't know what kind of shit the prc propaganda are feeding our boomers, I feel like my father is slowly becoming your father.",0.0,0.0,0.0,0.0,1.0
686
+ SG-Reddit-7,Why critical of Taiwan if it's part of PRC 😂😂,0.0,0.0,0.0,1.0,0.0
687
+ SG-Reddit-8,"1) Do your NS
688
+
689
+ 2) Plenty of people on this sub alone are saying we should stop using cheap labour and bangla slaves, so don't act like nobody has a problem with this.",0.0,1.0,0.0,0.0,1.0
690
+ SG-Reddit-9,When she pulls the I have Malay and Indian friends card you know what's going down,0.0,0.0,0.0,0.0,0.0
691
+ SG-Reddit-10,this the type of person that refer to a malay person as yalam dog. or kiao tor.,0.0,1.0,1.0,1.0,0.0
692
+ SG-Reddit-11,"KNN don’t come and bullshit you commie ah tiong, you the 30F with the throw-away account write essay one right KNN CB LMFAOOOOOO",1.0,1.0,1.0,0.0,0.0
693
+ SG-Reddit-12,Need homos to contribute to GDP,1.0,1.0,1.0,1.0,1.0
694
+ SG-Reddit-13,being in ns with majority malay made me hate malays with a passion.,1.0,1.0,1.0,1.0,1.0
695
+ SG-Reddit-14,I hope our isd monitor those who go and protest in the embassy. Those jokers are potential Terrorist who were brainwashed.,0.0,1.0,0.0,1.0,1.0
696
+ SG-Reddit-15,"> insulting people who oppose LGBT rights as retarded + comparing them to ISIS.
697
+
698
+ They are. Imposing your own cultures view on others doing NOTHING wrong. ISIS behaviour",0.0,1.0,1.0,1.0,1.0
699
+ SG-Reddit-16,"Indian style Prata?
700
+
701
+ Malay style Nasi Lemak?
702
+
703
+ Chinese style Hor Fun?
704
+
705
+ Eurasian style Shepherd's Pie?
706
+
707
+ Doggy style beas......",0.0,0.0,0.0,0.0,0.0
708
+ SG-Reddit-17,"The attitude of Malays being “holier than thou “ is kinda sickening . Have experienced it many times , sadly it’s not gonna stop .",0.0,1.0,1.0,1.0,1.0
709
+ SG-Reddit-18,Talking about malay muslim struggles what do you all put when documents asked for full names? If i put my father's name they always messed it up.,0.0,0.0,0.0,0.0,0.0
710
+ SG-Reddit-19,I propose that new citizens and PRs pass a Malay language test instead.,0.0,0.0,0.0,0.0,0.0
711
+ SG-Reddit-20,There's only about 180000 pinoys in sg.,0.0,0.0,0.0,0.0,0.0
712
+ SG-Reddit-21,Lmao that dumbass mat yoyo. Which halal place in the whole world sells pork as well? This kambing never read his qoran properly,1.0,1.0,0.0,1.0,0.0
713
+ SG-Reddit-22,And then Malays get a leg up in education via state funded Mendaki,0.0,0.0,1.0,0.0,0.0
714
+ SG-Reddit-23,"Thought this guy is gay too?
715
+
716
+ Edit: looks like he could have wanted to write “this is why gays don’t get any rights” but obviously his grammar fail.",1.0,0.0,1.0,0.0,0.0
717
+ SG-Reddit-24,bilibili is another site with pretty interesting comments by PRCs. Sometimes I like to see the comments on their lianhezaobao page,0.0,0.0,0.0,0.0,0.0
718
+ SG-Reddit-25,Ah Tiong don’t work as construction labourer already. The pay not enough to bring them over. Most probably are supervisors,0.0,0.0,0.0,0.0,0.0
719
+ SG-Reddit-26,I think it's the Chinese from PRC who get super-defensive about Sinovac. Local Singaporean Chinese either don't care or are actively avoiding Sinovac.,0.0,0.0,0.0,0.0,0.0
720
+ SG-Reddit-27,Bangla boys are hot stuff to Indons and Pinoy maids.,1.0,0.0,1.0,1.0,0.0
721
+ SG-Reddit-28,"Why doesn't he ask why SMRT CEO is always a former SAF general?
722
+
723
+ By the way, just curious whether in the first place is there an application submitted by the Malays for the interns?",0.0,0.0,0.0,0.0,0.0
724
+ SG-Reddit-29,Malay-Muslim people of r/Singapore is this a big issue for you guys ? Not being sarcastic. I am genuinely wondering.,0.0,0.0,0.0,0.0,0.0
725
+ SG-Reddit-30,"Geylang is huge. Geylang Serai is mostly halal, while the rest is haram af.",0.0,0.0,0.0,0.0,0.0
726
+ SG-Reddit-31,"Means the neighbour don't like him 🤣
727
+
728
+ My Malay neighbour always cook for my family and bake cookies. We can't cook so we just buy cookies during CNY.",0.0,0.0,0.0,0.0,0.0
729
+ SG-Reddit-32,Try import a ah tiong to be your next PM. See what happens next ...lol,1.0,1.0,1.0,1.0,1.0
730
+ SG-Reddit-33,"These PRCs are funny, in Europe they never pay hotel rent, get chased out, yet shout for help and questioned about human rights. Said Anti Japan, yet they visited there most.",0.0,1.0,1.0,1.0,1.0
731
+ SG-Reddit-34,Why so pressed about babi? Just say no lol,0.0,0.0,0.0,0.0,0.0
732
+ SG-Reddit-35,Lol this is actually quite accurate *laughs in Malay*,0.0,0.0,0.0,0.0,0.0
733
+ SG-Reddit-36,"I don't care if you're gay or straight or anything else, the only PDA I want to see in public is the XDA.",0.0,0.0,0.0,0.0,0.0
734
+ SG-Reddit-37,"Eh, you wanna watch this movie about this superhero who talks to fish or not, this Ah Gua Man?",0.0,0.0,0.0,0.0,0.0
735
+ SG-Reddit-38,Probably also the same person that thinks you’ll turn gay if you eat rainbow cakes.,0.0,0.0,0.0,0.0,1.0
736
+ SG-Reddit-39,"I don't recall coming out but I recall the nicknames. Sissy, aqua, giraffe",0.0,0.0,0.0,1.0,0.0
737
+ SG-Reddit-40,"Not sure where you learnt this but I don’t think you’ll be put behind bars if you’re gay.
738
+
739
+ Gay or not, we’re still human. We’re all equal. 🙂",0.0,0.0,0.0,0.0,0.0
740
+ SG-Reddit-41,You don't go to jail for being gay lmao. There is a law that criminalizes sex between 2 males but it's not enforced.,0.0,0.0,0.0,0.0,1.0
741
+ SG-Reddit-42,But gay sex can potentially allow 12 inch social distancing,1.0,1.0,0.0,1.0,1.0
742
+ SG-Reddit-43,Why not get the best of both world? Marry a tranny?,1.0,1.0,1.0,1.0,1.0
743
+ SG-Reddit-44,Yes i get that gay meant happy lol,0.0,0.0,0.0,0.0,0.0
744
+ SG-Reddit-45,"I really appreciate that no fag sign used in this scene, they should have it more irl. Reminds people not to bring fags into stores because I hate it when they do",1.0,1.0,0.0,1.0,1.0
745
+ SG-Reddit-46,"Gays are still human. From here you can see the black gay being a dick to Mr Kim while the other gay is understanding.
746
+
747
+ Be like Mr Kim. You do you, I do I.",0.0,1.0,0.0,1.0,0.0
748
+ SG-Reddit-47,"Complaining regardless of what the government does is not a gay thing, it’s a Singaporean thing.",1.0,1.0,0.0,1.0,0.0
749
+ SG-Reddit-48,"Fine, cane, jail, exile, and execute this homo now!",1.0,1.0,1.0,1.0,1.0
750
+ SG-Reddit-49,"No homo please, this is Singapore",1.0,1.0,1.0,1.0,1.0
751
+ SG-Reddit-50,"Homo bad, family values good",1.0,1.0,1.0,1.0,1.0
752
+ SG-Reddit-51,"The most important thing is to fish out the homo schoolteachers who are constantly seeking to anally penetrate little boys. Cane, jail, and cancel them!",1.0,1.0,1.0,1.0,1.0
753
+ SG-Reddit-52,"Bruh you're not a pussy if you worry about slashings, I dont particularly feel like getting slashed today, or any other day tbh",0.0,1.0,0.0,0.0,0.0
754
+ SG-Reddit-53,can we also add that rsaf hougang knocking sound making person a terrorist too?,0.0,1.0,1.0,0.0,0.0
755
+ SG-Reddit-54,"I sprayed the room, turned on air con...nothing works. in the end, i deal with these terrorist with counter terrorism tactics learnt in NS.......mosquito coil. It works.",0.0,0.0,0.0,1.0,0.0
756
+ SG-Reddit-55,No thanks. Maybe if got ISIS vtuber mascot ask to join then I consider.,0.0,1.0,0.0,0.0,0.0
757
+ SG-Reddit-56,Agreed. Muslims shouldn’t have to have butt-seks or get gay married.,1.0,1.0,1.0,1.0,1.0
758
+ SG-Reddit-57,I guess Samsung listened to their heart and said no homo,1.0,1.0,1.0,1.0,1.0
759
+ SG-Reddit-58,When u paste price tag with haram thoughts...,0.0,0.0,0.0,0.0,0.0
760
+ SG-Reddit-59,"As a side note, disappointing that our local media names and hyperlinks terrorists like the Christchurch shooter.",0.0,0.0,0.0,0.0,1.0
761
+ SG-Reddit-60,"This post would be more appropriate in r/Islam.
762
+ Standard answer to this would be to break up. Bf gf relationship is haram, doubly so with a freethinker.",0.0,1.0,0.0,1.0,0.0
763
+ SG-Reddit-61,"LMAO which idiot muslim actually think arabiki = arab?
764
+
765
+ fking hell i thought only china chinese people have this level of thinking",1.0,1.0,1.0,1.0,1.0
766
+ SG-Reddit-62,"Has he seen how many Malay guys buy 4D and drink beer? LoL
767
+
768
+ Fuckin hypocrite",0.0,0.0,0.0,1.0,0.0
769
+ SG-Reddit-63,"Most muslims won’t care lah. You want halal food? You want malay food? Lai, come makan.",0.0,0.0,0.0,0.0,0.0
770
+ SG-Reddit-64,Mock pork is haram but Mock Tail is ok. Because reasons.,0.0,1.0,0.0,0.0,0.0
771
+ SG-Reddit-65,lol. first time i hear of ah tiong self radicalisation,0.0,1.0,0.0,0.0,0.0
772
+ SG-Reddit-66,Assalamualaikum my name is Imran..here's how i donated $450 to a terrorist group with my passive income!,0.0,1.0,0.0,0.0,0.0
773
+ SG-Reddit-67,"I knew it, of course Imran is a terrorist.",1.0,1.0,0.0,1.0,1.0
774
+ SG-Reddit-68,"Just ask them to give up citizenship, take up PRC citizenship and move to China",0.0,1.0,0.0,0.0,1.0
775
+ SG-Reddit-69,"Have to agreed. With such high volume of PRC tourists. Not infected? Probably people dead already there, and it is not reported and pass off as another typical bodycount.",0.0,1.0,0.0,0.0,1.0
776
+ SG-Reddit-70,Ok nvm I dowan support anymore this Winnie the Pooh cocksucker,0.0,0.0,0.0,0.0,0.0
777
+ SG-Reddit-71,With so many china chinese singapore new citizens now. We better show loyalty to motherland.,0.0,1.0,0.0,0.0,0.0
778
+ SG-Reddit-72,"There we go comparing sg chinese to china chinese. It's like trying to fit apples with oranges, the culture also no fit lmao",0.0,0.0,1.0,0.0,0.0
779
+ SG-Reddit-73,I fucking hate prc,0.0,1.0,1.0,0.0,1.0
780
+ SG-Reddit-74,prc man forgot his bing qi ling,0.0,1.0,0.0,0.0,0.0
781
+ SG-Reddit-75,"If you like a guy, is it considered gay?",0.0,0.0,0.0,0.0,0.0
782
+ SG-Reddit-76,"That's why either conscript everyone or conscript no one.
783
+
784
+ Ah gua have always had these problems in NS. Even 新兵小传 highlighted this decades ago. It's not nice for them, many killed themselves.",0.0,0.0,0.0,0.0,1.0
data/CREHate_SBIC.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/CREHate_final_annotations.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/CREHate_raw_annotations.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/country_keywords.json ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "United Kingdom": [
3
+ "boer-hater",
4
+ "polack",
5
+ "taffy",
6
+ "brillo pad",
7
+ "nip",
8
+ "coconut",
9
+ "golliwog",
10
+ "slopy",
11
+ "islamic terrorist",
12
+ "bog-trotter",
13
+ "bum boy",
14
+ "bible basher",
15
+ "queer",
16
+ "gyppy",
17
+ "pole",
18
+ "taig",
19
+ "argie",
20
+ "ladyboy",
21
+ "bog",
22
+ "bogtrotter",
23
+ "dirty arab",
24
+ "god botherer",
25
+ "yam yam",
26
+ "piky",
27
+ "gippo",
28
+ "paddy",
29
+ "slopehead",
30
+ "southern fairy",
31
+ "rice christian",
32
+ "eyetie",
33
+ "n,thern monkey",
34
+ "raghead",
35
+ "boerehater",
36
+ "fricis",
37
+ "teig",
38
+ "nazi's",
39
+ "overner",
40
+ "gypsy",
41
+ "sand nigger",
42
+ "seppo",
43
+ "boer hater",
44
+ "froggy",
45
+ "bounty bar",
46
+ "rice bag",
47
+ "fritz",
48
+ "frogeater,",
49
+ "cheese-eating surrender monkeys",
50
+ "faggot",
51
+ "wop",
52
+ "piker",
53
+ "gyppo",
54
+ "ching chong",
55
+ "bosch",
56
+ "frog",
57
+ "pikey",
58
+ "slopey",
59
+ "boche",
60
+ "fenian",
61
+ "fuzzy-wuzzy",
62
+ "lezza",
63
+ "hun",
64
+ "фриц",
65
+ "bosche",
66
+ "fryc",
67
+ "jocky",
68
+ "argies",
69
+ "browner",
70
+ "gays",
71
+ "taff",
72
+ "proddy",
73
+ "tranny",
74
+ "pakkis",
75
+ "left-footer",
76
+ "jock",
77
+ "dyke",
78
+ "southern faerie",
79
+ "sloper",
80
+ "shirt lifter",
81
+ "slope",
82
+ "septic",
83
+ "gyppie",
84
+ "teg",
85
+ "mick",
86
+ "gypo",
87
+ "jaffa",
88
+ "bender",
89
+ "jewboy",
90
+ "gipp",
91
+ "fag",
92
+ "poof",
93
+ "fricc",
94
+ "prod",
95
+ "filthy arab",
96
+ "teague",
97
+ "jockie",
98
+ "paki"
99
+ ],
100
+ "Australia": [
101
+ "home",
102
+ "ching chong",
103
+ "gippo",
104
+ "septic",
105
+ "faggot",
106
+ "pedophile",
107
+ "slopehead",
108
+ "brownie",
109
+ "curry",
110
+ "skip",
111
+ "abuser",
112
+ "frog",
113
+ "chink",
114
+ "boong",
115
+ "gyppie",
116
+ "nip",
117
+ "slopey",
118
+ "coconut",
119
+ "golliwog",
120
+ "slopy",
121
+ "terrorist",
122
+ "leb",
123
+ "bong",
124
+ "gyppy",
125
+ "homo",
126
+ "gub",
127
+ "gypo",
128
+ "skippy",
129
+ "bung",
130
+ "red sea pedestrian",
131
+ "gypsy",
132
+ "abbo",
133
+ "abo",
134
+ "towel head",
135
+ "wog",
136
+ "seppo",
137
+ "murderer",
138
+ "lebo",
139
+ "gipp",
140
+ "muzzie",
141
+ "cunt",
142
+ "tranny",
143
+ "fag",
144
+ "poof",
145
+ "god botherer",
146
+ "froggy",
147
+ "half-caste",
148
+ "gubba",
149
+ "slut",
150
+ "dyke",
151
+ "poofter",
152
+ "boat people",
153
+ "gin jockey",
154
+ "frogeater,",
155
+ "sloper",
156
+ "slope",
157
+ "gyppo"
158
+ ],
159
+ "South Africa": [
160
+ "l",
161
+ "imbeciles",
162
+ "boer-hater",
163
+ "malau",
164
+ "musrat",
165
+ "langneus",
166
+ "satan",
167
+ "boesman",
168
+ "kavir",
169
+ "houtkop",
170
+ "amalawu",
171
+ "kwerekwere",
172
+ "rainbow",
173
+ "gammat",
174
+ "jew",
175
+ "30%er",
176
+ "holborsel",
177
+ "nondidwa",
178
+ "coconut",
179
+ "coolie",
180
+ "kwang",
181
+ "morphie",
182
+ "terrorist",
183
+ "boerehater",
184
+ "kaffir boetie",
185
+ "kaffir",
186
+ "cooli",
187
+ "waterslams",
188
+ "homo",
189
+ "dumb",
190
+ "lightskin",
191
+ "moffie",
192
+ "baboon",
193
+ "thief",
194
+ "bushman",
195
+ "monkey",
196
+ "hottentot",
197
+ "engelsman",
198
+ "sifebe",
199
+ "rooinek",
200
+ "stupid",
201
+ "skeef",
202
+ "gam",
203
+ "queerness",
204
+ "rascals",
205
+ "jihadist",
206
+ "cunt",
207
+ "jezebel",
208
+ "tranny",
209
+ "amaqheya",
210
+ "boer hater",
211
+ "boer",
212
+ "bushy",
213
+ "whore",
214
+ "ninja",
215
+ "schizophrenics",
216
+ "crooked",
217
+ "hoer",
218
+ "vrou",
219
+ "seinig",
220
+ "hotnot",
221
+ "faggot",
222
+ "nyope",
223
+ "soutpiel",
224
+ "bitch"
225
+ ],
226
+ "Singapore": [
227
+ "han tu",
228
+ "pinoy",
229
+ "sarong party girl",
230
+ "ah gua",
231
+ "indon",
232
+ "alluhakbar",
233
+ "bangla",
234
+ "terrorist",
235
+ "kelengkia",
236
+ "blackie",
237
+ "babi",
238
+ "homo",
239
+ "mhad",
240
+ "ang mo",
241
+ "mati",
242
+ "mat",
243
+ "kehling",
244
+ "sissy",
245
+ "apunehneh",
246
+ "gay",
247
+ "cocksucker",
248
+ "isis",
249
+ "haram",
250
+ "malay",
251
+ "tranny",
252
+ "fag",
253
+ "pussy",
254
+ "ren yao",
255
+ "prc",
256
+ "china chinese",
257
+ "faggot",
258
+ "ah tiong",
259
+ "yalam",
260
+ "osama"
261
+ ]
262
+ }
finetune/CREHate-TAG-train.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-tag-train.json | tee -a ./res/BERTweet-CREHate-ALL-tag-train-US.txt
2
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-tag-train.json | tee -a ./res/HateBERT-CREHate-ALL-tag-train-US.txt
3
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-tag-train.json | tee -a ./res/TwHIN-BERT-CREHate-ALL-tag-train-US.txt
4
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-tag-train.json | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-tag-train-US.txt
5
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-tag-train.json | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-tag-train-US.txt
6
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-tag-train.json | tee -a ./res/BERT-CREHate-ALL-tag-train-US.txt
7
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-tag-train.json | tee -a ./res/RoBERTa-CREHate-ALL-tag-train-US.txt
8
+
finetune/CREHate-train.sh ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # US
2
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-train.json | tee -a ./res/BERTweet-CREHate-ALL-train-US.txt
3
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-train.json | tee -a ./res/HateBERT-CREHate-ALL-train-US.txt
4
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-train.json | tee -a ./res/TwHIN-BERT-CREHate-ALL-train-US.txt
5
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-train.json | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-train-US.txt
6
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-train.json | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-train-US.txt
7
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-train.json | tee -a ./res/BERT-CREHate-ALL-train-US.txt
8
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-train.json | tee -a ./res/RoBERTa-CREHate-ALL-train-US.txt
9
+
10
+ # AU
11
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]BERTweet-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]BERTweet-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col BERTweet-CREHate-AU | tee -a ./res/BERTweet-CREHate-ALL-train-AU.txt
12
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]HateBERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]HateBERT-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col HateBERT-CREHate-AU | tee -a ./res/HateBERT-CREHate-ALL-train-AU.txt
13
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]TwHIN-BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]TwHIN-BERT-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col TwHIN-BERT-CREHate-AU | tee -a ./res/TwHIN-BERT-CREHate-ALL-train-AU.txt
14
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]Twitter-RoBERTa-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col Twitter-RoBERTa-CREHate-AU | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-train-AU.txt
15
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]ToxDect-RoBERTa-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col ToxDect-RoBERTa-CREHate-AU | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-train-AU.txt
16
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]BERT-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col BERT-CREHate-AU | tee -a ./res/BERT-CREHate-ALL-train-AU.txt
17
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[AU]RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[AU]RoBERTa-base_CREHate_best.pth.tar --label_col Australia_Hate --test_res_col RoBERTa-CREHate-AU | tee -a ./res/RoBERTa-CREHate-ALL-train-AU.txt
18
+
19
+ # # # UK
20
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]BERTweet-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]BERTweet-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col BERTweet-CREHate-UK | tee -a ./res/BERTweet-CREHate-ALL-train-UK.txt
21
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]HateBERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]HateBERT-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col HateBERT-CREHate-UK | tee -a ./res/HateBERT-CREHate-ALL-train-UK.txt
22
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]TwHIN-BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]TwHIN-BERT-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col TwHIN-BERT-CREHate-UK | tee -a ./res/TwHIN-BERT-CREHate-ALL-train-UK.txt
23
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]Twitter-RoBERTa-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col Twitter-RoBERTa-CREHate-UK | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-train-UK.txt
24
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]ToxDect-RoBERTa-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col ToxDect-RoBERTa-CREHate-UK | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-train-UK.txt
25
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]BERT-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col BERT-CREHate-UK | tee -a ./res/BERT-CREHate-ALL-train-UK.txt
26
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[UK]RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[UK]RoBERTa-base_CREHate_best.pth.tar --label_col United_Kingdom_Hate --test_res_col RoBERTa-CREHate-UK | tee -a ./res/RoBERTa-CREHate-ALL-train-UK.txt
27
+
28
+ # # # ZA
29
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]BERTweet-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]BERTweet-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col BERTweet-CREHate-ZA | tee -a ./res/BERTweet-CREHate-ALL-train-ZA.txt
30
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]HateBERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]HateBERT-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col HateBERT-CREHate-ZA | tee -a ./res/HateBERT-CREHate-ALL-train-ZA.txt
31
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]TwHIN-BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]TwHIN-BERT-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col TwHIN-BERT-CREHate-ZA | tee -a ./res/TwHIN-BERT-CREHate-ALL-train-ZA.txt
32
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]Twitter-RoBERTa-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col Twitter-RoBERTa-CREHate-ZA | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-train-ZA.txt
33
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]ToxDect-RoBERTa-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col ToxDect-RoBERTa-CREHate-ZA | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-train-ZA.txt
34
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]BERT-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col BERT-CREHate-ZA | tee -a ./res/BERT-CREHate-ALL-train-ZA.txt
35
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[ZA]RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[ZA]RoBERTa-base_CREHate_best.pth.tar --label_col South_Africa_Hate --test_res_col RoBERTa-CREHate-ZA | tee -a ./res/RoBERTa-CREHate-ALL-train-ZA.txt
36
+
37
+ # # # SG
38
+ python finetune.py --config_file ./config_files/BERTweet-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]BERTweet-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]BERTweet-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col BERTweet-CREHate-SG | tee -a ./res/BERTweet-CREHate-ALL-train-SG.txt
39
+ python finetune.py --config_file ./config_files/HateBERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]HateBERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]HateBERT-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col HateBERT-CREHate-SG | tee -a ./res/HateBERT-CREHate-ALL-train-SG.txt
40
+ python finetune.py --config_file ./config_files/TwHIN-BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]TwHIN-BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]TwHIN-BERT-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col TwHIN-BERT-CREHate-SG | tee -a ./res/TwHIN-BERT-CREHate-ALL-train-SG.txt
41
+ python finetune.py --config_file ./config_files/Twitter-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]Twitter-RoBERTa-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col Twitter-RoBERTa-CREHate-SG | tee -a ./res/Twitter-RoBERTa-CREHate-ALL-train-SG.txt
42
+ python finetune.py --config_file ./config_files/ToxDect-RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]ToxDect-RoBERTa-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col ToxDect-RoBERTa-CREHate-SG | tee -a ./res/ToxDect-RoBERTa-CREHate-ALL-train-SG.txt
43
+ python finetune.py --config_file ./config_files/BERT-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]BERT-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]BERT-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col BERT-CREHate-SG | tee -a ./res/BERT-CREHate-ALL-train-SG.txt
44
+ python finetune.py --config_file ./config_files/RoBERTa-CREHate-ALL-train.json --checkpoint_filename ./checkpoints/[SG]RoBERTa-base_CREHate_checkpoint.pth.tar --best_filename ./checkpoints/[SG]RoBERTa-base_CREHate_best.pth.tar --label_col Singapore_Hate --test_res_col RoBERTa-CREHate-SG | tee -a ./res/RoBERTa-CREHate-ALL-train-SG.txt
45
+
finetune/config.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Standard
2
+ import random
3
+ import json
4
+
5
+ # PIP
6
+ import numpy as np
7
+ import torch
8
+ import torch.nn as nn
9
+ import pytorch_lightning as pl
10
+
11
+ # Custom
12
+
13
+
14
+
15
+
16
+ class Config:
17
+ # User Setting
18
+ SEED = 94
19
+ if_arabic = False
20
+
21
+
22
+ def __init__(self, filename, SEED=None):
23
+ if SEED:
24
+ self.SEED = SEED
25
+ self.set_random_seed()
26
+ self.read_json(filename)
27
+
28
+ self.model = self.config_df['model']
29
+ self.max_length = self.config_df['max_length']
30
+ self.checkpoint_filename = self.config_df['checkpoint_filename']
31
+ self.best_filename = self.config_df['best_filename']
32
+ self.additional_tokens = self.config_df['additional_tokens']
33
+ self.remove_special_tokens = self.config_df['remove_special_tokens']
34
+ self.get_special_tokens()
35
+
36
+ self.train_data = self.config_df['train_data']
37
+ self.val_data = self.config_df['val_data']
38
+ self.test_data = self.config_df['test_data']
39
+ self.test_res = self.config_df['test_res']
40
+
41
+ self.sent_col = self.config_df['sent_col']
42
+ self.label_col = self.config_df['label_col']
43
+ self.num_labels = self.config_df['num_labels']
44
+
45
+ self.test_res_col = self.config_df['test_res_col']
46
+ self.test_col = self.config_df['test_col']
47
+
48
+ self.batch_size = self.config_df['batch_size']
49
+ self.num_workers = self.config_df['num_workers']
50
+ self.distributed=self.config_df['distributed']
51
+
52
+ self.train = self.config_df['train']
53
+ self.evaluate = self.config_df['evaluate']
54
+ self.test = self.config_df['test']
55
+
56
+ self.resume = self.config_df['resume']
57
+ self.resume_model = self.config_df['resume_model']
58
+
59
+ self.start_epoch = 0
60
+ self.epochs = 6
61
+
62
+
63
+ def get_special_tokens(self,filename='{ANY_SPECIAL_TOKENS}.json'):
64
+
65
+ with open(filename,'r') as f:
66
+ self.additional_tokens += list(json.load(f).values())
67
+
68
+ def read_json(self,filename):
69
+ with open(filename,'r') as f:
70
+ self.config_df = json.load(f)
71
+
72
+ def set_random_seed(self):
73
+ print(f'=> SEED : {self.SEED}')
74
+
75
+ random.seed(self.SEED)
76
+ np.random.seed(self.SEED)
77
+ torch.manual_seed(self.SEED)
78
+ torch.backends.cudnn.deterministic = True
79
+ torch.backends.cudnn.benchmark = False
80
+ torch.cuda.manual_seed_all(self.SEED)
81
+
82
+ pl.seed_everything(self.SEED)
83
+ #
finetune/config_files/BERT-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "bert-base-cased",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]BERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]BERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "BERT-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/BERT-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "bert-base-cased",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]BERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]BERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "BERT-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/BERTweet-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "vinai/bertweet-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]BERTweet-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]BERTweet-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "BERTweet-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/BERTweet-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "vinai/bertweet-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]BERTweet-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]BERTweet-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "BERTweet-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/HateBERT-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "./hate_bert",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]HateBERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]HateBERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "HateBERT-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/HateBERT-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "./hate_bert",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]HateBERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]HateBERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "HateBERT-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/RoBERTa-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "roberta-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "RoBERTa-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/RoBERTa-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "roberta-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "RoBERTa-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/ToxDect-RoBERTa-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "Xuhui/ToxDect-roberta-large",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]ToxDect-RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "ToxDect-RoBERTa-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/ToxDect-RoBERTa-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "Xuhui/ToxDect-roberta-large",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]ToxDect-RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]ToxDect-RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "ToxDect-RoBERTa-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/TwHIN-BERT-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "Twitter/TwHIN-BERT-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]TwHIN-BERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]TwHIN-BERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "TwHIN-BERT-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/TwHIN-BERT-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "Twitter/TwHIN-BERT-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]TwHIN-BERT-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]TwHIN-BERT-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "TwHIN-BERT-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/Twitter-RoBERTa-CREHate-ALL-tag-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "cardiffnlp/twitter-roberta-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[TAG]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[TAG]Twitter-RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train_tagged.csv",
10
+ "val_data" : "./data_splits/CREHate_valid_tagged.csv",
11
+ "test_data" : "./data_splits/CREHate_test_tagged_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_tagged_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "hate_label" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "Twitter-RoBERTa-CREHate",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/config_files/Twitter-RoBERTa-CREHate-ALL-train.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model" : "cardiffnlp/twitter-roberta-base",
3
+ "max_length":128,
4
+ "checkpoint_filename" : "./checkpoints/[US]Twitter-RoBERTa-base_CREHate_checkpoint.pth.tar",
5
+ "best_filename" : "./checkpoints/[US]Twitter-RoBERTa-base_CREHate_best.pth.tar",
6
+ "additional_tokens" : ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"],
7
+ "remove_special_tokens" :true,
8
+
9
+ "train_data" : "./data_splits/CREHate_train.csv",
10
+ "val_data" : "./data_splits/CREHate_valid.csv",
11
+ "test_data" : "./data_splits/CREHate_test_res.csv",
12
+ "test_res" : "./data_splits/CREHate_test_res.csv",
13
+
14
+ "sent_col" : "Text" ,
15
+ "label_col" : "United_States_Hate" ,
16
+ "num_labels" : 2,
17
+
18
+ "test_col" : "Text",
19
+ "test_res_col" : "Twitter-RoBERTa-CREHate-US",
20
+
21
+
22
+ "batch_size" : 32 ,
23
+ "num_workers" : 4,
24
+ "distributed":true,
25
+
26
+ "train" : true,
27
+ "evaluate" : true,
28
+ "test" : true,
29
+
30
+ "resume" : false,
31
+ "resume_model" : ""
32
+ }
finetune/data_splits/CREHate_test.csv ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,Text,Australia_Hate,United_States_Hate,United_Kingdom_Hate,South_Africa_Hate,Singapore_Hate
2
+ SBIC-13,"""@USER: bitches can't cook but know how to suck dick .."" s/o to the ones that can do both!",1.0,1.0,1.0,1.0,0.0
3
+ SBIC-16,"""@USER I know it's easy to think names as first+last, but """"you can't create a lead without a last name"""" ignores real world names.""",0.0,0.0,0.0,0.0,0.0
4
+ SBIC-30,"""One man's trash is another man's treasure"" Wonderful saying, horrible way to find out that you were adopted.",0.0,0.0,0.0,1.0,0.0
5
+ SBIC-32,"""RT @USER: (Haters): Please name a rapper from Austin who has """"Valid"""" numbers like these... can't? &#129300;Okay, shut the fuck up and…""",0.0,0.0,0.0,0.0,1.0
6
+ SBIC-33,"""RT @USER: """"na boo you just be fucking with the wrong niggas"""" - a wronger nigga""",0.0,0.0,0.0,0.0,0.0
7
+ SBIC-46,"""most ugly men are ugly on the inside too""",0.0,1.0,0.0,1.0,1.0
8
+ SBIC-52,"#faggots are MERELY a #scientific indicator that SOMETHING IS WRONG> Do not celebrate as ""unique indiviuals"" for they are #cancer>",1.0,1.0,1.0,1.0,1.0
9
+ SBIC-66,(If I owe you a reply please forgive me. I can't find them! It will take me a bit of time to go through my mentions.),0.0,0.0,0.0,0.0,0.0
10
+ SBIC-74,*jumps up and down because I cannot wait to get to it and for @USER to destroy me emotionally*,0.0,0.0,0.0,0.0,0.0
11
+ SBIC-78,.@USER there will not be comment section so people comment i want to see reviews so i feel people are watching liking chandrakanta or not,0.0,0.0,0.0,0.0,0.0
12
+ SBIC-95,"@USER Yes because the person we voted for is keeping his promises, in spite of the lefts resistance! # MAGA. today and 2020",0.0,0.0,0.0,0.0,0.0
13
+ SBIC-101,"@USER
14
+ I eat dat chicken out your love box baby. Lovin a white woman while eatin chicken. A colored mans dream",0.0,0.0,1.0,0.0,0.0
15
+ SBIC-104,@USER And once he called me an ungrateful bitch and retarded nigga in an argument. It's how we argued. Now… URL,1.0,1.0,1.0,1.0,0.0
16
+ SBIC-107,"@USER You don't have any kids?! What are you, one of them queers!?",1.0,1.0,1.0,1.0,0.0
17
+ SBIC-110,@USER them hoes ain't thick at all u clowning,1.0,0.0,0.0,0.0,0.0
18
+ SBIC-129,"A black man and a Mexican jump off the roof at the same time, who hits the ground first? Who cares?",1.0,1.0,1.0,1.0,1.0
19
+ SBIC-132,"A black man gets shot 12 times and stabbed 34 times by a white man. ""These black people are now possessing people in order to commit suicide. Worst case of suicide I've seen""
20
+ #####- Local County Sheriff",1.0,1.0,1.0,1.0,1.0
21
+ SBIC-135,"A cripple walks into a bar. Just kidding, no he doesn't.",1.0,0.0,1.0,0.0,1.0
22
+ SBIC-151,"A single book of matches gonna burn what's standing in the way. Roaring down the mountain, they're calling on the fire brigade...",0.0,0.0,0.0,0.0,0.0
23
+ SBIC-157,"Aan indian was taking a dump and died. Strange, isn't it?? He didn't pay attention to the train heading towards him...",1.0,1.0,1.0,1.0,1.0
24
+ SBIC-169,All I found out yesterday was that I'm the prettiest ugly Nigga out hurrrrrr,0.0,0.0,0.0,0.0,0.0
25
+ SBIC-171,"All I want is to stop hurting...
26
+ All I want is to make my pain go away, but it never fucking leaves, ever...at best I just start feeling nothing.",0.0,0.0,0.0,0.0,0.0
27
+ SBIC-173,"All of these school shootings in the news are really effecting me, I never thought I would let fame go to my head",0.0,0.0,0.0,0.0,0.0
28
+ SBIC-181,Amusing to watch the #LyingLiarsLie about incompetence while being so unaware at how incompetent they themselves are #maddow #resist,0.0,0.0,0.0,0.0,0.0
29
+ SBIC-193,Are you white but wanna be black? Just follow the Jews footsteps.,1.0,1.0,1.0,1.0,1.0
30
+ SBIC-199,At this point I will assume the media is lying about everything other than a Negro being arrested for his murder .,1.0,1.0,1.0,1.0,1.0
31
+ SBIC-206,Being colorblind has given You the Degenerate Fucked Up Country you've got Now.....If You like It.....Keep Doing what you're Doing !......Azzmador,1.0,1.0,1.0,1.0,1.0
32
+ SBIC-213,Black people are like mitochondria They're the powerhouse of the cell,1.0,1.0,0.0,1.0,1.0
33
+ SBIC-225,Can someone explain unwelcome and involuntary when it comes to verbal sexual harassment?,0.0,0.0,0.0,0.0,0.0
34
+ SBIC-232,"Cool, finally got it working just in time to hear someone call in and let the host know that thanks to Stormfront , the show is being listened to all over the world .",0.0,0.0,0.0,0.0,0.0
35
+ SBIC-253,Do you know how copper wire was invented? Two Jews fighting over a penny,1.0,1.0,1.0,1.0,1.0
36
+ SBIC-255,"Do you want to know how a depressed person can beat depression quick? Just give them a chair and a rope, the depression will be gone in a matter of minutes!",1.0,1.0,0.0,1.0,1.0
37
+ SBIC-257,Don't forget to catch us tomorrow for the last workplace challenge on @USER with @USER,0.0,0.0,0.0,0.0,0.0
38
+ SBIC-262,"Education system is messed up for the same reason everything else is messed up - Jews , non-whites and liberal women run and ruin everything .",1.0,1.0,1.0,1.0,1.0
39
+ SBIC-266,Exposed man charged with risk of injury Found with child in car Just another day in da hood ....,0.0,0.0,0.0,0.0,0.0
40
+ SBIC-272,"Fat girls, landwhales, ugly girls
41
+ So on online dating why do they think they are entitled to chad?",1.0,1.0,1.0,1.0,1.0
42
+ SBIC-277,Feminism- bunch of adult women deciding that it's ok to permanently disfigure a baby boy's penis.,1.0,1.0,1.0,1.0,1.0
43
+ SBIC-279,Fighting fire with fire is not the fucking answer!!! @USER #usairstrike #helpsyria #stopfightingfirewithfire #Airstrikes,0.0,0.0,0.0,0.0,0.0
44
+ SBIC-280,Finally something positive I found of the Ethiopians HIV,1.0,1.0,1.0,1.0,1.0
45
+ SBIC-281,"Financial Fatherhood
46
+ Are men legally able to waive financial responsibility in Texas if they were part of an unplanned/unwanted pregnancy?",0.0,0.0,0.0,0.0,0.0
47
+ SBIC-287,Gladio's tattoo must've cost so much fucking money,0.0,0.0,0.0,0.0,0.0
48
+ SBIC-295,"Guys ( and gals ) , just wanted to say : there are few things more entertaining than watching you do another arrogant negro poster .",1.0,1.0,1.0,1.0,1.0
49
+ SBIC-296,Guys I just got my chromosome test back Above average,0.0,0.0,0.0,0.0,1.0
50
+ SBIC-304,Have you ever tried Ethiopian cuisine? Nether have they,1.0,0.0,1.0,0.0,1.0
51
+ SBIC-320,Holy Balls....LIBERALS ARE THE BIGGEST F'ing idiots ever!!! #tucker #tuckercarlson Russia Russia Russia,1.0,1.0,1.0,1.0,1.0
52
+ SBIC-321,Hopefully in a few hours I'll have the hair I've always dreamed of. Thanks to me fucking it up earlier this year.,0.0,0.0,0.0,0.0,0.0
53
+ SBIC-330,How did they know princess Diana had dandruff? they found her head and shoulders in the glove compartment,0.0,0.0,0.0,0.0,1.0
54
+ SBIC-339,How do you start a rave in Africa? You staple a piece of bread to the ceiling,1.0,1.0,1.0,1.0,1.0
55
+ SBIC-341,How do you successfully advertise sleeping pills? You get Bill Cosby to sponsor you,1.0,0.0,0.0,1.0,0.0
56
+ SBIC-355,"I Support LGBTQ Activities L - Let’s
57
+ G - Go
58
+ B - Beat
59
+ T - The
60
+ Q - Queers",1.0,1.0,1.0,1.0,1.0
61
+ SBIC-356,I Told My American Friend To Smoke A Fag When He Gets Stressed He shot up an Orlando nightclub.,1.0,1.0,1.0,1.0,1.0
62
+ SBIC-362,I cant stand that Jamie all through this not 1 person has mentioned the bird hes with get ova it leave @USER alone. Ur ex bird cheated,0.0,0.0,0.0,0.0,0.0
63
+ SBIC-364,I could never be a liberal because I'm positive my head won't fit up my own ass.,1.0,1.0,0.0,1.0,0.0
64
+ SBIC-379,I got sick after my friend gave me... A box of dynamite.,0.0,0.0,0.0,0.0,0.0
65
+ SBIC-402,I like my women like I like my cigars 7 years old and coming from cuba in a burlap sack,1.0,0.0,1.0,1.0,0.0
66
+ SBIC-410,I looked at the discussion and it is obvious that we are outnumbered by non-whites and race traitors and follow the other followers types .,1.0,1.0,1.0,0.0,1.0
67
+ SBIC-411,"I never look away; I want to stare into your face, The gentle look away; I let my true feelings be sitting here trying to",0.0,0.0,0.0,0.0,0.0
68
+ SBIC-422,I was craving chicken nuggets so fucking bad. Thank u morning star for ur veggie nuggest even tho that wheat allergy will bite me in the ass,0.0,0.0,0.0,0.0,0.0
69
+ SBIC-430,"I would make a transgender joke, but... ...Mom always told me not to make fun of the mentally ill.",1.0,1.0,1.0,1.0,1.0
70
+ SBIC-457,If you ever hated on me... bitch naw I don't fuck wit you,0.0,0.0,0.0,0.0,0.0
71
+ SBIC-459,"If you look like me, you should just give up and/or kill yourself
72
+ I won't show what I look like but you'll get what I mean.",0.0,0.0,0.0,1.0,0.0
73
+ SBIC-461,"If you're a 7-8/10 minority, you can't even compete with 5-6/10 white guys
74
+ Honestly, if you're a minority incel, suicide is the better option.",1.0,1.0,1.0,1.0,1.0
75
+ SBIC-469,It is also what i and almost everyone on this thread dream about and work for after all it is the only asurance the Aryan people have for survival,0.0,0.0,0.0,0.0,1.0
76
+ SBIC-478,Just read about the Heroes 2.0 Mastery Taunts. How often do you ever have time to taunt in Heroes of the Storm?? What a stupid edition,0.0,0.0,0.0,0.0,0.0
77
+ SBIC-484,Koreans do anything to achieve their purpose. URL #Pakistan #UAE #Israel #Palestrina,1.0,0.0,1.0,0.0,1.0
78
+ SBIC-488,Left wanted to push normalization of Nazism as they target the right as all Soclist Nazi nationalist and they have achieved there goal but how do we handle this issue we all know the power of voting with silence will be ours but that just leaves violence as a choice for the Left not winning.,1.0,0.0,1.0,0.0,0.0
79
+ SBIC-491,Life RT @USER: I'm not giving these hoes free meals so they can go lay up with the dude they can't get over. Nope.,1.0,0.0,1.0,0.0,0.0
80
+ SBIC-493,"Look, the only live action Disney remake I want is the Emperor’s New Groove and I want there to be no CGI",0.0,0.0,0.0,0.0,0.0
81
+ SBIC-501,MeToo Movement Femoid Likens Being Hit on in Public to Being Mugged.,0.0,1.0,1.0,1.0,1.0
82
+ SBIC-510,My dad has always told me back in his day you had to walk uphill both ways through a foot of snow to get to school That ain’t nothing. My generation has to walk through open fire.,0.0,0.0,0.0,0.0,0.0
83
+ SBIC-512,"My daughter killed a butterfly so I said, “no butter for a month,” The next day she killed a cockroach. Nice try.",0.0,0.0,0.0,0.0,0.0
84
+ SBIC-517,"My girlfriend broke up with me for stealing her wheelchair
85
+ I know she'll come crawling back eventually",1.0,0.0,1.0,0.0,1.0
86
+ SBIC-518,"My girlfriend called me a pedophile. I never knew 1 years old could talk.
87
+
88
+ Especially with a dick in the mouth.",1.0,1.0,0.0,0.0,1.0
89
+ SBIC-526,My wife gets so fed up of our baby's incessant crying that... She gets tries to push our baby back into the hole it came out of.,0.0,0.0,0.0,0.0,0.0
90
+ SBIC-532,"Not All Straight Men - I am frustrated. Unlike on OKCupid, queer folks don&#8217;t have the ability to block... URL",0.0,0.0,1.0,0.0,0.0
91
+ SBIC-540,"Old woman:: ""Schools shouldn't offer free lunches to kids, since that means their parents just take advantage, and don't bother trying to find jobs to support their kids."" Me:: ""So you think we should allow kids to starve?!"" Woman's husband:: ""You see [myname], if you give them handouts, these people don't work. When I got out of high school, if you wanted to eat, you had to find a job. Nobody has any work ethic anymore."" At a party. Made me feel like I was talking to a compassion-less brick wall.",0.0,0.0,0.0,0.0,0.0
92
+ SBIC-541,Only 1 in 700 people will get this... An extra 21st chromosome.,1.0,0.0,0.0,0.0,0.0
93
+ SBIC-551,Please go to GoFundMe and put in dachshund needs help. My cream girl who is three yrs old has lost her feeling in the back.,0.0,0.0,0.0,0.0,1.0
94
+ SBIC-556,RT @USER: Ungrateful bitches ... URL,0.0,0.0,0.0,0.0,1.0
95
+ SBIC-557,"RT @USER: I'm tired of fat hoes calling themselves ""thick"". Bitch, yo fat ass can't even bend over and touch your toes withou ...",0.0,1.0,0.0,1.0,1.0
96
+ SBIC-558,RT @USER: @USER them klutzy bitches,0.0,0.0,0.0,1.0,1.0
97
+ SBIC-562,RT @USER: In the car with my frands going FUCKING HYPERSPEED URL,0.0,0.0,0.0,0.0,0.0
98
+ SBIC-570,Richmond police just made a Kissyface it Leo.,0.0,0.0,0.0,0.0,0.0
99
+ SBIC-571,"Roy Moore: ""Trannies are an abomination, repeal gay marriage, put God back into the government""
100
+
101
+ Populist Working-Class Voter: ""Okay, whatever nigga I just want a job""",1.0,1.0,1.0,1.0,1.0
102
+ SBIC-575,Sept 11th 2001 The day al qaeda won the worst game of jenga ever...,1.0,0.0,0.0,0.0,0.0
103
+ SBIC-582,Smack these hoes on they ass like we birthed these bitches,0.0,1.0,1.0,0.0,1.0
104
+ SBIC-607,Thank you my friend for posting on our section ...,0.0,0.0,0.0,0.0,0.0
105
+ SBIC-613,The Twin Towers were full of Nazis. They did Nazi the planes coming.,1.0,0.0,0.0,0.0,1.0
106
+ SBIC-616,The fat acceptance movement is the only movement without movement,1.0,1.0,1.0,1.0,1.0
107
+ SBIC-618,The funny thing about conversing with kikes is once you've mastered seeing through their deceptive jewspeak you quickly realize that whole high iq thing is largely a myth,1.0,1.0,1.0,1.0,1.0
108
+ SBIC-619,"The kikes probably put the Leftist up to it , to make it seem like they do n't have total control of everyone .",1.0,1.0,1.0,0.0,0.0
109
+ SBIC-623,"The red scum will never wake up , ignorant lefties fight for `` their class '' when their making a mockery of their culture and heritage . commie scum ..",1.0,1.0,1.0,1.0,1.0
110
+ SBIC-625,"The therapy ads in the banner are, unsurprisingly, a scam.",0.0,0.0,0.0,0.0,0.0
111
+ SBIC-635,"These guys took offence earlier because I said ""midget"" instead of ""little person"". I was forced to restart my story. I said, ""OK, so I was fucking this dead little person...""",1.0,1.0,1.0,1.0,1.0
112
+ SBIC-645,This truth applies to other subjects we discuss on this board .,0.0,0.0,0.0,0.0,0.0
113
+ SBIC-656,Trump and hitler are similar but Atleast hitler knew when to kill himself,1.0,0.0,1.0,0.0,1.0
114
+ SBIC-657,TwoX agrees that the gender pay gap doesn't exist!,1.0,0.0,0.0,1.0,0.0
115
+ SBIC-664,"Wait, can I catch your Asperger's?",0.0,0.0,0.0,0.0,1.0
116
+ SBIC-665,"Wanna hear the biggest lie? ""Men and women deserve equal rights""",1.0,1.0,1.0,1.0,0.0
117
+ SBIC-666,Wasn't that when Steve and Bean got their heads cracked opened ?,0.0,0.0,0.0,0.0,1.0
118
+ SBIC-675,What a fucking goal! Zaha to Puncheon to Townsend to Benteke Goal!!! &#128293;&#128293;&#128293;&#128293;,0.0,0.0,0.0,0.0,0.0
119
+ SBIC-684,What did the kid who stole the gun from the school shooter say? My Turn!,0.0,0.0,0.0,1.0,1.0
120
+ SBIC-687,What did the nigger get on his SAT's? Watermelon Juice -Kevin Barnett,1.0,1.0,1.0,1.0,1.0
121
+ SBIC-698,What do you call a charred hot dog? An Anne Frank,1.0,1.0,0.0,0.0,1.0
122
+ SBIC-700,What do you call a kid with no arms or legs? Names.,0.0,1.0,1.0,1.0,0.0
123
+ SBIC-704,"What do you call a person with no arms or legs in the ocean?
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ Bob",0.0,0.0,0.0,0.0,0.0
134
+ SBIC-706,What do you call a special jew? Auschwistic,1.0,1.0,1.0,1.0,1.0
135
+ SBIC-714,What do you call it when you are beating up a mentally insane person? Busting A Nut,1.0,1.0,1.0,1.0,0.0
136
+ SBIC-724,What does a redneck girl say when she meets her first lover? Hi dad!,0.0,1.0,1.0,1.0,1.0
137
+ SBIC-732,"What is that in the background, a giant lawn chair?",0.0,0.0,0.0,0.0,0.0
138
+ SBIC-738,What part of a vegetable cant you eat? The wheelchair,1.0,1.0,1.0,1.0,1.0
139
+ SBIC-739,What runs faster then a mexican who just stole your TV? His cousin with the DVD player,1.0,1.0,1.0,1.0,1.0
140
+ SBIC-747,What's a 1000 meters long and has an IQ of 68? A black lives matter parade.,1.0,1.0,1.0,1.0,1.0
141
+ SBIC-758,What's the difference between Batman and a black man? Batman can go out at might without robin.,1.0,1.0,1.0,1.0,1.0
142
+ SBIC-771,"What's the difference between homeless people and rats? Nothing, they both are infestations to big cities",1.0,1.0,1.0,1.0,1.0
143
+ SBIC-790,What’s the difference between a feminist and an infant? I’d fuck the infant,1.0,1.0,1.0,1.0,1.0
144
+ SBIC-791,What’s the difference between a potato and my disabled 5 year old? One is a root vegetable the other is a vegetable I root,1.0,0.0,1.0,1.0,1.0
145
+ SBIC-799,When two fat American's have sex it's... MISSIONARY IMPOSSIBLE.,1.0,1.0,1.0,1.0,1.0
146
+ SBIC-802,"When you say you love me, know I love you more . And when you say you need me, know I need you more",0.0,0.0,0.0,0.0,0.0
147
+ SBIC-811,Why are there so many party stores in the ghetto? Like do all the poor people like to celebrate they're poor?,1.0,1.0,0.0,1.0,1.0
148
+ SBIC-816,Why did Hitler kill the out-of-time drummer? Rhythmic cleansing,1.0,0.0,1.0,1.0,1.0
149
+ SBIC-819,Why do Puerto Ricans hang the Puerto Rican flag in their car? So they dont steal from each other.,1.0,1.0,1.0,1.0,1.0
150
+ SBIC-823,Why do the white kids only shoot up schools? cuz all the black kids shot each other,1.0,1.0,1.0,1.0,1.0
151
+ SBIC-825,Why does being a Black Jew suck so much? Having to sit in the back of the oven.,1.0,1.0,1.0,1.0,1.0
152
+ SBIC-829,Why don’t Jews get gifts for Christmas? Cuz why the fuck would you give a gift to a pile of ashes,1.0,1.0,1.0,1.0,1.0
153
+ SBIC-845,Yeah I watch the History Channel all the time and I am in all the Honor classes I just wanted to do something and yes I do have the muscle to back it up .,0.0,0.0,0.0,0.0,0.0
154
+ SBIC-857,Your in ya cell 22 hours a day here u dont in general walk around the landings .,0.0,0.0,0.0,0.0,0.0
155
+ SBIC-866,"a priest asks the convicted murderer at the electric chair , "" do you have any last requests ? ” "" yes , "" replies the murderer . "" can you please hold my hand ? """,0.0,0.0,0.0,0.0,0.0
156
+ SBIC-878,fat chicks . <repeat> make uggs look like socks .,1.0,1.0,0.0,1.0,1.0
157
+ SBIC-880,hey have you seen rolling thunder ? last time i saw him he was burning rubber with the new wheelchair he got from his disability benefits outside of wal - mart .,1.0,0.0,1.0,1.0,0.0
158
+ SBIC-894,i like wanking whilst looking at myself in the mirror . my driving instructor does n't .,0.0,0.0,0.0,0.0,0.0
159
+ SBIC-896,i think i need to find a new girlfriend she is starting to learn to talk now,1.0,0.0,0.0,0.0,0.0
160
+ SBIC-897,i want a dyke clique,0.0,1.0,0.0,0.0,0.0
161
+ SBIC-899,i will never forgive the rihanna navi for letting KIB flop but that trash ass Needed Me and equally bad LOTB are legitimate HITS!!,0.0,0.0,0.0,0.0,0.0
162
+ SBIC-902,if you donate just <number> pound a month . . . you can help us make another advert with sad looking african children in it .,1.0,1.0,1.0,1.0,1.0
163
+ SBIC-912,"normies dont know what its like to suffer
164
+ there whole life they have had it easy,barley lonely,never had to deal with mental illness,and yet they pass judgment on us,we have every right to dislike them",0.0,0.0,1.0,0.0,1.0
165
+ SBIC-918,should be a prenatal test to find out if you're gonna have one of those kids with tiny teeth and giant gums.,1.0,0.0,0.0,1.0,0.0
166
+ SBIC-921,"some people say i do n't let my wife choose anything , but that 's not true ! i let her choose between front hand and back hand .",1.0,1.0,0.0,0.0,0.0
167
+ SBIC-924,that moment when you silence a mage and they start backpedalling and you just KNOW it's about to go down,0.0,0.0,0.0,0.0,0.0
168
+ SBIC-927,the blacks and special needs are cursed with ? tardiness,1.0,1.0,1.0,1.0,1.0
169
+ SBIC-930,the young homeless girl was delighted when i asked if i could take her home . she was n't too excited when i walked off with her cardboard box .,0.0,0.0,0.0,0.0,1.0
170
+ SBIC-934,trump has been fucking toxic from the start and you fucks who voted for him are just NOW seeing this? IT TOOK YOU THIS LONG #PrayForSyria,0.0,0.0,0.0,1.0,1.0
171
+ SBIC-944,what 's the difference between a jew and a bullet ? a bullet can escape the chamber,1.0,1.0,1.0,1.0,1.0
172
+ SBIC-947,what 's the most common type of shooting range ? a school .,1.0,0.0,1.0,1.0,0.0
173
+ SBIC-973,why do so many people think teen boys only want sex?,0.0,0.0,0.0,0.0,0.0
174
+ AU-YouTube-5,Taiwan president should issue warning to fag xi jin ping n put him on most wanted,1.0,1.0,1.0,1.0,1.0
175
+ AU-YouTube-7,"Go to hell, Abbo knees",1.0,0.0,1.0,0.0,1.0
176
+ AU-YouTube-24,"@USER  So what are u crying about here..
177
+
178
+ Ur country can't even deal with animals like rabbits, Camels, foxes not even frogs lol 😅..
179
+
180
+ So forget about space...",0.0,0.0,0.0,1.0,0.0
181
+ AU-YouTube-40,This man with a beard is very malicious and unfortunately the majority of Muslims support him and practice the same provocative method and evade the answer. Terrorist ideology distorts human nature.,1.0,1.0,1.0,1.0,0.0
182
+ AU-YouTube-49,Any people who are supporting this. They are supporting pedophiles who are going to target children to think this normal thinking,1.0,0.0,1.0,0.0,1.0
183
+ AU-YouTube-51,Eww this is all disgusting...next they will have pedophiles claiming they identify as a child ....crazy,1.0,0.0,1.0,1.0,0.0
184
+ AU-YouTube-52,The Satanic Global Elite pedophiles are behind all these trans people...they are going after our kids after desecrating the men and women.... please fight back. We are many against their few....,1.0,1.0,1.0,1.0,1.0
185
+ AU-YouTube-54,Of course he supports all terrorists,1.0,0.0,0.0,1.0,1.0
186
+ AU-YouTube-58,The lgbtq+ don’t accept pedophiles but nice try. Provide some evidence if i am wrong,0.0,0.0,0.0,0.0,0.0
187
+ AU-YouTube-62,"The proverbial slippery slope !!!!!
188
+ They Fd up, they came for our children !!!!",0.0,0.0,0.0,0.0,1.0
189
+ AU-YouTube-66,To late! The damage is already done! Laws should be put back in place making homo sexuality illegal!,1.0,1.0,1.0,1.0,1.0
190
+ AU-YouTube-67,"Good for Uganda.
191
+ LGBT is a trojan horse to transgenderism and grooming children.
192
+ The slippery slope is real.",1.0,1.0,1.0,0.0,1.0
193
+ AU-YouTube-70,"He isn't gay he is miserable.
194
+ Whether he is hetero or homo is another matter.",0.0,0.0,0.0,1.0,0.0
195
+ AU-Reddit-21,"Typical abos. Im from the far north and this is a daily occurrence, even woman doing it to 120kg full grown ass men.. alcohol and drugs play a huge part.",1.0,0.0,1.0,1.0,0.0
196
+ AU-Reddit-24,"Saturdays - poof doof.
197
+ Weekdays- Sircuit, Rainbow, Peel",0.0,0.0,0.0,0.0,0.0
198
+ AU-Reddit-25,"*in a civil suit.
199
+
200
+ Now bring this murderer to a military tribunal and throw him in jail.",0.0,0.0,0.0,0.0,0.0
201
+ AU-Reddit-27,They'd be walking if he was a double murderer.,0.0,0.0,0.0,0.0,0.0
202
+ AU-Reddit-36,I want to know what's in the green file. Curry + accounting on a Wednesday night?,0.0,0.0,0.0,0.0,0.0
203
+ AU-Reddit-47,"Does the Pope shit in the woods?
204
+ It's not rocket surgery.
205
+ Ironing out the chinks.",1.0,0.0,1.0,0.0,1.0
206
+ AU-Reddit-51,"I run a sparky business and I have to answer every call. Honestly 50% of calls now are from some cunt trying to scam me, or sell me something",0.0,0.0,0.0,0.0,0.0
207
+ AU-Reddit-52,"Well of course he would, thats how them secretly Moslem Lebs are.
208
+
209
+ /s",1.0,1.0,1.0,1.0,1.0
210
+ AU-Reddit-57,They also have poof doofs at the ivy.,0.0,1.0,1.0,0.0,0.0
211
+ AU-Reddit-58,"You will be safe at Poof Doof, but bored. Try Heaps Gay or Unicorns parties. More ‘variety’ of people of the rainbow!",0.0,0.0,0.0,0.0,1.0
212
+ AU-Reddit-66,Those homos and their welcome to country/policing agenda.../s,0.0,1.0,1.0,1.0,1.0
213
+ AU-Reddit-70,But some of those boat people were au pairs.,1.0,0.0,1.0,0.0,0.0
214
+ GB-YouTube-0,Out of all the immigrants how many are gonna go back home?,1.0,0.0,1.0,0.0,0.0
215
+ GB-YouTube-6,"Too right,I know you have poles living and working in ireland and many married Irish ladies,they have fitted in quite well, similar cultures.",0.0,0.0,0.0,0.0,0.0
216
+ GB-YouTube-9,No law and order against the illegal immigrants criminals cartels fentanly drugs,1.0,1.0,1.0,0.0,1.0
217
+ GB-YouTube-25,"We Poles 🇵🇱 share with British 🇬🇧common Christian legacy ✝️, but you do prefer Muslims ☪️ 👍",0.0,0.0,0.0,1.0,1.0
218
+ GB-YouTube-43,An immigrant helping immigrants get in the UK. Nothing new here,1.0,0.0,1.0,0.0,1.0
219
+ GB-YouTube-48,"If you really want to shorten the war, Russia, try messing with the Poles 😂",0.0,0.0,0.0,0.0,0.0
220
+ GB-YouTube-49,Wagner are standing by the Belarus border in case the poles try anything stupid.,0.0,0.0,0.0,0.0,0.0
221
+ GB-YouTube-50,​ @USER Did you miss the attacks on civilians by the Neo Nazi Avoz in The Donbass since 2014 which has killed over 100 children ?,0.0,0.0,0.0,0.0,0.0
222
+ GB-YouTube-54,I am a Muslim from Pakistan. But I see whats wrong with UK. Just letting Immigrants in and then complaining.,0.0,0.0,0.0,0.0,1.0
223
+ GB-YouTube-55,"Alice is so right ,your a boy or a girl as simple as that give me a break whos making up these new gender benders some gay it",1.0,1.0,1.0,1.0,1.0
224
+ GB-YouTube-61,how can he be gay if he made some kids with a woman :D I thought gays arent turned on by women :D,1.0,0.0,1.0,1.0,0.0
225
+ GB-Reddit-17,And you should ask tranny's what they call there hole,1.0,1.0,1.0,1.0,1.0
226
+ GB-Reddit-18,"I can't, I'm queer and they won't take it",0.0,0.0,0.0,0.0,0.0
227
+ GB-Reddit-23,who won or who is in pole position? I hope the Ukraine wins the contest,0.0,0.0,0.0,0.0,0.0
228
+ GB-Reddit-24,No pole on this stage set?,0.0,0.0,0.0,0.0,0.0
229
+ GB-Reddit-39,The bbc don’t give a shit about the safety of queer people. We’re headlines and targets and nothing more.,0.0,0.0,0.0,0.0,0.0
230
+ GB-Reddit-51,I thought rent was awful. But it had nothing to do with gays and more to do with it being inaudible.,1.0,0.0,0.0,0.0,0.0
231
+ ZA-YouTube-2,But k don't blame them kwerekweres March and demand also.Why can't they,0.0,0.0,0.0,1.0,0.0
232
+ ZA-YouTube-6,Wow. Rainbow 🌈 turned completely black😅,0.0,0.0,0.0,1.0,1.0
233
+ ZA-YouTube-11,Killl the BOER the FARMER!!!!! BRRRR POW! POW!,1.0,1.0,1.0,1.0,1.0
234
+ ZA-YouTube-15,Iff you wound stop the song kill the farmer kill the boer than whe will sing kill the joutkop kill the blacks is that ok with you malema,1.0,1.0,1.0,1.0,1.0
235
+ ZA-YouTube-17,This man is a terrorist aiming to divide our nation and encite violence while he rakes in millions and lives in luxury we are dying. He is worse than Robert. Wake up people. Get rid of this dictator,0.0,0.0,0.0,0.0,1.0
236
+ ZA-YouTube-18,"When Penny Sparrow wrote about blacks as monkeys she was fined R150000
237
+ The judge who said that Malemas rhetoric is not hate speech is either very sick or eff member",0.0,0.0,0.0,0.0,0.0
238
+ ZA-YouTube-34,Terrorists are terrorists. They have no country. Raise public awareness against the terrorists and help the police to take stern actions against the terrorists.,0.0,0.0,0.0,0.0,0.0
239
+ ZA-YouTube-36,ANC doesn't care about our safety and security everyone just flock to SA even terrorists are here 😭😭😭😭,0.0,0.0,0.0,0.0,0.0
240
+ ZA-YouTube-43,At least there's no crooked ministers always wanting to eat,0.0,0.0,0.0,0.0,0.0
241
+ ZA-YouTube-50,@USER  you are wrong as you knew and your not a real christian so .... who cares what you say old bean? Go pray to satan as you do sound as if u do anyway.,0.0,1.0,1.0,1.0,1.0
242
+ ZA-YouTube-54,"Rights ,hahahahaa what bullshit this rainbow bullshit.",0.0,1.0,1.0,0.0,0.0
243
+ ZA-Reddit-2,"Reading this thread has turned me into a communist, the morality and values of rich Boers is some real upside-down twisted shit lmao",0.0,0.0,1.0,1.0,1.0
244
+ ZA-Reddit-5,"Hottentots Holland is the name of the HS i went to and the name is unchanged so im guessing, NO.",0.0,0.0,0.0,0.0,0.0
245
+ ZA-Reddit-31,"Wait, what? Why are South African soldiers fighting terrorists in Mozambique???",0.0,0.0,0.0,0.0,0.0
246
+ ZA-Reddit-32,Are they looking for ISIS terrorists?,0.0,0.0,0.0,0.0,0.0
247
+ ZA-Reddit-33,Anyone remember how a few months ago r/southafrica was convinced that sending troops to Moz would result in tons of terrorist attacks?,0.0,0.0,0.0,0.0,0.0
248
+ ZA-Reddit-40,"They're not terrorists they're fReEdOm FiGhTeRs.
249
+
250
+ Just like how when the ANC necklaced BLACK people they were freedom fighters, or when they bombed innocent civilians.",1.0,1.0,1.0,0.0,0.0
251
+ ZA-Reddit-43,"I remember ""coolie creepers"" in Eastern Cape. Kinda like a googly I think in cricket.
252
+
253
+ Anyone else?",0.0,0.0,0.0,0.0,0.0
254
+ ZA-Reddit-45,Possibly coconut-ice.,0.0,0.0,0.0,0.0,0.0
255
+ ZA-Reddit-46,Could be coconut ice if it has coconut flakes in it.,0.0,0.0,0.0,0.0,0.0
256
+ ZA-Reddit-50,Satan Africa,1.0,1.0,1.0,1.0,1.0
257
+ ZA-Reddit-53,How long before the racist apologists crawl out to claim Boer actually means cop or Kill the Boer means overthrow the system??,1.0,0.0,1.0,0.0,1.0
258
+ ZA-Reddit-54,"""Kill the Boer"" is blatant hate speech and Americans should focus on their own problems.",0.0,0.0,0.0,1.0,0.0
259
+ ZA-Reddit-59,You won't catch a boer in American overalls.,0.0,0.0,0.0,0.0,0.0
260
+ ZA-Reddit-67,"Just don't call him a monkey, literally, or illiterately, for that matter. You'll go to jail, literally, even if if you did not mean he is a literal monkey.",0.0,0.0,0.0,0.0,0.0
261
+ ZA-Reddit-72,Hey PIC stop being racist cunts,0.0,0.0,0.0,0.0,1.0
262
+ ZA-Reddit-78,"Attention whore, nothing more. Maybe he'll get a rugby game when this is all over, but I doubt it.",0.0,0.0,0.0,0.0,0.0
263
+ ZA-Reddit-81,What's so EFFing special about you EFFing Jews?,1.0,1.0,1.0,1.0,1.0
264
+ SG-YouTube-10,Lol xi claims south china sea part of Malaysia Indonesia had birder disputes with Kazakhstan and what not.,0.0,0.0,0.0,0.0,0.0
265
+ SG-YouTube-17,"Correct, But those China ha-te here are so happy 😅",1.0,0.0,1.0,1.0,0.0
266
+ SG-YouTube-19,"People who respect humanity, not USA , killing people for nothing, quenching for blood, China will takeover Usa soon.",1.0,1.0,0.0,1.0,0.0
267
+ SG-YouTube-21,north korea vibe XD china and north korea are like twin commies,1.0,0.0,1.0,0.0,1.0
268
+ SG-YouTube-28,This 3 January Malaysia close border to China tourist..,0.0,0.0,0.0,0.0,0.0
269
+ SG-YouTube-31,@USER  As long you have Chinatown in your country CCP will said your country is part of China. Same as Taiwan just because they speak Chinese and sharing food similarity they are part of China.,0.0,0.0,0.0,0.0,0.0
270
+ SG-YouTube-44,@USER  You were claiming Chinese schools = promote Chinese? Since when? So is Ahmad Ibrahim Sch promoting Malays? Hilarious claims.,0.0,0.0,0.0,0.0,0.0
271
+ SG-YouTube-45,@USER  We do have Malays in Airforce or Navy. Just fewer.,0.0,0.0,0.0,0.0,0.0
272
+ SG-YouTube-69,"Tel that girl to go to Iran, they'd love her there! Now I understand China's Xingjiang policy, China doesn't want nonsense to stop her progress.",0.0,1.0,1.0,1.0,1.0
273
+ SG-YouTube-72,Just to fill up the quota for chinese woman. That's all.,1.0,1.0,1.0,0.0,0.0
274
+ SG-Reddit-3,friends stall is 30k a month a few years ago after the big reno. i cant find my old pinoy stall anymore,0.0,0.0,0.0,0.0,0.0
275
+ SG-Reddit-8,"1) Do your NS
276
+
277
+ 2) Plenty of people on this sub alone are saying we should stop using cheap labour and bangla slaves, so don't act like nobody has a problem with this.",1.0,0.0,0.0,0.0,1.0
278
+ SG-Reddit-11,"KNN don’t come and bullshit you commie ah tiong, you the 30F with the throw-away account write essay one right KNN CB LMFAOOOOOO",1.0,1.0,1.0,0.0,0.0
279
+ SG-Reddit-13,being in ns with majority malay made me hate malays with a passion.,1.0,1.0,1.0,1.0,1.0
280
+ SG-Reddit-22,And then Malays get a leg up in education via state funded Mendaki,0.0,0.0,1.0,0.0,0.0
281
+ SG-Reddit-32,Try import a ah tiong to be your next PM. See what happens next ...lol,1.0,1.0,1.0,1.0,1.0
282
+ SG-Reddit-42,But gay sex can potentially allow 12 inch social distancing,1.0,1.0,0.0,1.0,1.0
283
+ SG-Reddit-55,No thanks. Maybe if got ISIS vtuber mascot ask to join then I consider.,1.0,0.0,0.0,0.0,0.0
284
+ SG-Reddit-58,When u paste price tag with haram thoughts...,0.0,0.0,0.0,0.0,0.0
285
+ SG-Reddit-60,"This post would be more appropriate in r/Islam.
286
+ Standard answer to this would be to break up. Bf gf relationship is haram, doubly so with a freethinker.",1.0,0.0,0.0,1.0,0.0
287
+ SG-Reddit-72,"There we go comparing sg chinese to china chinese. It's like trying to fit apples with oranges, the culture also no fit lmao",0.0,0.0,1.0,0.0,0.0
288
+ SG-Reddit-73,I fucking hate prc,1.0,0.0,1.0,0.0,1.0
finetune/data_splits/CREHate_test_tagged.csv ADDED
The diff for this file is too large to render. See raw diff
 
finetune/data_splits/CREHate_train.csv ADDED
The diff for this file is too large to render. See raw diff
 
finetune/data_splits/CREHate_train_tagged.csv ADDED
The diff for this file is too large to render. See raw diff
 
finetune/data_splits/CREHate_valid.csv ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,Text,Australia_Hate,United_States_Hate,United_Kingdom_Hate,South_Africa_Hate,Singapore_Hate
2
+ SBIC-55,&#8220;@USER: Throwing lamps at bitches who need to lighten up.&#8221; True dat,0.0,1.0,0.0,0.0,1.0
3
+ SBIC-182,"An Asian woman just gave me a handjob while fingering my ass Which isnt what i meant when i asked her to give me a 'Hand Roll and Pork Intestines
4
+ That's the problem with having the Chinese Massage place right next to the Chinese takeout place",1.0,1.0,1.0,1.0,1.0
5
+ SBIC-415,I so hate democrats they are some sore losers my gosh they are fucking annoying.,0.0,1.0,1.0,1.0,1.0
6
+ SBIC-531,"No, I'm not telling anyone what their score is. Then it'll just turn into a contest for GamerGate to try to 'win'.",0.0,0.0,0.0,0.0,0.0
7
+ SG-Reddit-44,Yes i get that gay meant happy lol,0.0,0.0,0.0,0.0,0.0
8
+ SBIC-328,How did Hitler kill so many Jews? Free transportation,1.0,1.0,1.0,1.0,1.0
9
+ SBIC-521,"My lil cousin be hating. Bitches always want the older nigga, not my fault nor did I fuck the bitch so chill..lol",0.0,0.0,1.0,0.0,1.0
10
+ SBIC-609,Thanks for the advice i 'll keep that on mind .,0.0,0.0,0.0,0.0,0.0
11
+ SBIC-263,"Ever notice the way the mechanisations of the state , always side with their anti-fascist NWO goffers ?",0.0,0.0,1.0,0.0,0.0
12
+ SBIC-51,#cabinetreshuffle fricking hell Melusi Gigaba for finance minister???????? @USER @USER I'm shell shocked,0.0,0.0,0.0,0.0,0.0
13
+ AU-YouTube-14,Bruh Nelson Mandela was a communist terrorist he and his wife used to burn opponents with burning tires and blew up school buses,0.0,0.0,0.0,1.0,0.0
14
+ SBIC-413,I really wish feminists would stop perpetuating gender roles like the fragile and feckless girl who faints over anything crude; or the hysterical and entitled woman who relies on a man's gentlemanly virtue to get what she wants.,0.0,0.0,1.0,1.0,1.0
15
+ SG-Reddit-52,"Bruh you're not a pussy if you worry about slashings, I dont particularly feel like getting slashed today, or any other day tbh",1.0,0.0,0.0,0.0,0.0
16
+ SBIC-201,"B.S., there would not be a race war because of Whites going out and shooting up non-White neighborhoods ; it is already open season on White Americans and White Europeans and White Australians and White Canadians .",1.0,1.0,1.0,1.0,1.0
17
+ SG-Reddit-25,Ah Tiong don’t work as construction labourer already. The pay not enough to bring them over. Most probably are supervisors,0.0,0.0,0.0,0.0,0.0
18
+ SBIC-784,Whats the hardest part of the vegetable to eat? The wheelchair,1.0,1.0,1.0,1.0,1.0
19
+ SBIC-804,Where are all the feminist and leftist riots/rallies in the streets against Hollywood's pedophilia and sexual harassment culture?,1.0,0.0,1.0,1.0,1.0
20
+ SBIC-855,You niggas talking to these females trying to get some pussy but dont realize you're only boosting their ego and getting curved.,1.0,0.0,1.0,1.0,0.0
21
+ SBIC-405,I like my women like i like my Jews... cooking.,1.0,1.0,1.0,1.0,1.0
22
+ SBIC-412,"I read recently in cold black and white print that there was around 10,000 nigerians in Ireland ... Now you say close to 300,000 ????!",0.0,0.0,0.0,1.0,0.0
23
+ SBIC-198,Asking north Korea not to make nuclear weapons is a bit like asking an Audi driver not to drive too close to the car in front.,1.0,0.0,0.0,1.0,0.0
24
+ GB-YouTube-56,"Igaf how transphobic you think I am, you’re gonna learn what it feels like to catch one with your jaw if you gonna try to rob me. Give her damn money back queer bate.",1.0,1.0,1.0,1.0,1.0
25
+ SBIC-743,What were the best r/pussypassdenied moments in your life?,0.0,0.0,0.0,0.0,1.0
26
+ SBIC-554,"REMINDER: femoids would rather fuck ABUSIVE CHADS than an incel
27
+ But don't forget that your personality is the problem.",1.0,1.0,1.0,1.0,1.0
28
+ SBIC-499,Me suki suki you long time!,0.0,0.0,1.0,0.0,0.0
29
+ SBIC-728,"What falls harder, rain or snow? World Trade Center.",0.0,0.0,0.0,1.0,1.0
30
+ SBIC-561,RT @USER: hos will literally do ANYTHING to say they got a nigga dawg &#128514;&#128514;,1.0,0.0,1.0,0.0,1.0
31
+ SBIC-227,Chingle changle goes the jew Because of the pennies in his pocket that he stole from you,1.0,1.0,1.0,1.0,0.0
32
+ ZA-YouTube-30,"If you are complicit in terrorist activities than that is what you are.
33
+ You cant say farm murders are crimes. Its terrorist activities that target white people and white farmers.",1.0,0.0,0.0,0.0,0.0
34
+ SBIC-660,Update: apparently my whole family ate dinner without me cos they thought i ate :)))) i was starving waiting to eat together with yall :)))),0.0,0.0,0.0,0.0,0.0
35
+ SG-Reddit-34,Why so pressed about babi? Just say no lol,0.0,0.0,0.0,0.0,0.0
36
+ SBIC-407,"I like you, you don't act gay.",1.0,1.0,1.0,1.0,0.0
37
+ SBIC-608,Thanks for the #RT! @USER @USER @USER @USER @USER @USER Have a great week!,0.0,0.0,0.0,0.0,0.0
38
+ GB-Reddit-32,I'm a food snob (wouldn't touch walkers with a barge pole) but pretty much all tescos own brand food is excellent these days I find.,0.0,0.0,0.0,0.0,0.0
39
+ SBIC-126,"A black guy and Mexican were in a car, Who is driving? The Cop",1.0,1.0,1.0,1.0,1.0
40
+ GB-YouTube-70,@USER  queer theory is making you crazy,1.0,1.0,1.0,0.0,0.0
41
+ SBIC-765,What's the difference between a feminist and a knife? A knife has a point.,1.0,0.0,1.0,1.0,1.0
42
+ GB-Reddit-42,Jesus im one of those awful gays. I dont care . I literally fought to be proud of me and ill fight for his free speech.,0.0,0.0,0.0,0.0,0.0
43
+ SBIC-73,*gasps* You've NEVER had taiyaki* before? You're not really Japanese!,0.0,0.0,0.0,0.0,0.0
44
+ SG-YouTube-18,"the chinese are risk adverse, wont go to war unless absolutely necessary, they think long game, if china wanted to, it could create miitary parade ten times size of north korea",0.0,0.0,0.0,0.0,0.0
45
+ SBIC-215,Black people arent like sperm Black people can't swim and sperm swims so they are unsuccessful,1.0,1.0,1.0,1.0,1.0
46
+ SG-YouTube-56,The weird thing is his victimes are straight men not gay and he said he want to make them gay because he want them to be free from their monsters girlfriends,1.0,0.0,0.0,1.0,1.0
47
+ SBIC-875,"dead baby joke mom : "" why are these scissors so sticky ? "" son : "" sorry , i cut something wet . "" mom : what 'd you cut with scissors that was wet ? <repeat> "" son : "" an infant 's windpipe """,0.0,0.0,0.0,0.0,0.0
48
+ SBIC-89,:D @USER Dudes who go to culinary school: #why #findawife #notsexist :),0.0,0.0,0.0,0.0,1.0
49
+ ZA-Reddit-7,The rainbow is a lie.,0.0,0.0,0.0,0.0,0.0
50
+ SG-Reddit-33,"These PRCs are funny, in Europe they never pay hotel rent, get chased out, yet shout for help and questioned about human rights. Said Anti Japan, yet they visited there most.",1.0,0.0,1.0,1.0,1.0
51
+ AU-Reddit-56,Can religious church's stop hiring pedophiles?,0.0,0.0,1.0,0.0,1.0
52
+ GB-YouTube-59,That's OK as long as they stay in India we have enough queers in britain,1.0,1.0,1.0,1.0,1.0
53
+ GB-YouTube-63,"Holly and the POOF on this morning every MORNING what a Joke , there’s him banging a young man and Holly not doing nothing about it unbelievable 😡😡😡😡",1.0,1.0,1.0,0.0,0.0
54
+ SBIC-872,because in that moment if i had told them when i told the school someone sexually assulted me and they didnt do anything would they believe?,0.0,0.0,0.0,0.0,0.0
55
+ ZA-YouTube-24,let him sing . He is uniting the boers again .,0.0,0.0,0.0,0.0,0.0
56
+ SBIC-693,What do u do after raping Helen Keller? Break her fingers so she can't tell,1.0,1.0,1.0,1.0,1.0
57
+ AU-YouTube-37,"just like America it's world leader, when they are strong, funding terrorist and manipulation poor people into terrorist just like taliban.",0.0,0.0,1.0,1.0,1.0
58
+ SBIC-605,Technically legal If you penetrate before she says no its technically not rape,0.0,1.0,0.0,1.0,1.0
59
+ SBIC-755,What's the best part about using a vegtible for sex? they can't escape.,1.0,1.0,1.0,1.0,1.0
60
+ SBIC-307,Having sex with german girls is weird They keep screaming their age for some reason.,1.0,1.0,0.0,1.0,0.0
61
+ SBIC-721,What do you get when someone bullies a really autistic kid? 20 casualties.,1.0,1.0,1.0,1.0,1.0
62
+ GB-YouTube-75,so now gays are the good guys? gimme a break.,1.0,1.0,1.0,1.0,1.0
63
+ SBIC-432,I'll only accept a #Firefly reboot if @USER's Wash is miraculously found unharmed and he's cast in the show.,0.0,0.0,0.0,0.0,0.0
64
+ SG-Reddit-54,"I sprayed the room, turned on air con...nothing works. in the end, i deal with these terrorist with counter terrorism tactics learnt in NS.......mosquito coil. It works.",0.0,0.0,0.0,1.0,0.0
65
+ SBIC-224,Cagondie bailando fucking shuffle en nava esto es la focking polla,0.0,0.0,0.0,0.0,1.0
66
+ AU-Reddit-31,""" They say I know fkn nothing! But I know fk all! ""
67
+
68
+ -Wog Boy
69
+
70
+ Now googling 'muzza'",0.0,0.0,1.0,0.0,0.0
71
+ SG-Reddit-75,"If you like a guy, is it considered gay?",0.0,0.0,0.0,0.0,0.0
72
+ SG-Reddit-36,"I don't care if you're gay or straight or anything else, the only PDA I want to see in public is the XDA.",0.0,0.0,0.0,0.0,0.0
73
+ ZA-YouTube-3,"Do away with race classification, jobs for all, rainbow 🌈 nation",0.0,0.0,0.0,0.0,0.0
74
+ SBIC-474,Jesus gave 6 million people bread and wine But Hitler made 6 million Jews toast,1.0,1.0,1.0,0.0,1.0
75
+ ZA-Reddit-74,"What about if we listen to all the experts, and not just a few? Perhaps the OP is a stupid cunt? And can't think critically?",0.0,0.0,0.0,0.0,0.0
76
+ SBIC-895,i named my son michael simon albert timothy charles brian kevin andrew nicholas frederick anthony donald victor alfonse lawrence theodore stephen william jacob alexander richard benjamin arthur daniel aidan lucas john oliver david sebastian henry ryan julian evan cameron dominic leonardo . <repeat> . <repeat> ut the little fucker still did n't drown at the christening .,0.0,0.0,0.0,0.0,1.0
77
+ ZA-Reddit-83,I agree...bugger that...my mom used to say it until I told her what it means...anyway...I have nothing to do with Jews said my Dad during WW2...,0.0,0.0,1.0,0.0,0.0
78
+ GB-YouTube-8,SOUTH AFRICANS are called xenophobic when they complain about illegal immigrants who get employed and paid cheap labour. Thank you,0.0,0.0,0.0,0.0,1.0
79
+ GB-Reddit-1,"Aw thanks, now I want pea soup & a fag.",0.0,0.0,0.0,0.0,0.0
80
+ SBIC-752,What's common between Newton and the kid i stabbed to death? Newton Died virgin.,1.0,0.0,0.0,0.0,0.0
81
+ AU-Reddit-69,"I hear he has disbanded the navy too. He did an inspection, so many boat people😱",0.0,0.0,0.0,0.0,0.0
82
+ SBIC-472,It's the Marine Corps Birthday Tomorrow One former marine started celebrating early by buying a bar free shots.,0.0,0.0,0.0,0.0,0.0
83
+ SBIC-685,What did the kid with down syndrome get in his test? 47/46,1.0,1.0,1.0,1.0,1.0
84
+ SBIC-116,"A Black kid complemented my T-shirt He said: Nice shirt faggot... I said yeah, it’s 100% cotton. Tell your grandparents I said thanks",1.0,1.0,1.0,1.0,1.0
85
+ ZA-Reddit-79,"This is silly, you think they would travel all the way to conduct terrorist attacks.",0.0,0.0,0.0,0.0,0.0
86
+ SBIC-553,Pretty sure Richard Gilmore is Cracker von Patriarch.,0.0,1.0,0.0,0.0,1.0
87
+ SBIC-211,"Black Student:: Yeah man us Black people don't do too well in water. White student:: Yeah, yall took advantage of that free boat ride huh? An exchange my friend who attends Lake Forest College overheard.",1.0,1.0,1.0,1.0,1.0
88
+ SBIC-737,What never eats but still is alive? The children of africa,1.0,1.0,0.0,1.0,1.0
89
+ SBIC-197,Asian women hate their race so much they will literally date white supremacists,1.0,1.0,1.0,1.0,1.0
90
+ SBIC-482,Kenny done fucked around and got crazy with the visuals... well I'll be,0.0,0.0,0.0,0.0,0.0
91
+ SBIC-43,"""if i wasnt in a work place id deck you"" aye fucking right, I'd give you a tyson 4 combo nd end you with an uppercut. Shut the fuck up bitch",0.0,1.0,0.0,0.0,1.0
92
+ SBIC-769,"What's the difference between anal sex and oral sex? Oral makes your day.
93
+ Anal makes your hole weak.",0.0,0.0,0.0,0.0,0.0
94
+ SBIC-387,I have never heard a song by this idiot negro but the press is always talking about everything he says or does .,1.0,1.0,1.0,1.0,1.0
95
+ AU-Reddit-4,Call a dumb cunt a dumb cunt - and call the police,0.0,0.0,0.0,1.0,0.0
96
+ SG-YouTube-8,"Well done 👍 China 🇨🇳
97
+ Taking revenge by virus 🦠 from Indians",1.0,1.0,1.0,1.0,1.0
98
+ SG-Reddit-9,When she pulls the I have Malay and Indian friends card you know what's going down,0.0,0.0,0.0,0.0,0.0
99
+ SBIC-686,What did the little nerd kid say to his bullies after class? Nothing they're all dead,0.0,0.0,0.0,0.0,0.0
100
+ SBIC-492,Life is like a box of choclate It dosent last as long for fat people,1.0,1.0,1.0,1.0,0.0
101
+ SBIC-58,"&#8220;@USER: @USER would love the Parkside sport girls, dressed like Kobe all day everyday!&#8221; Let me see 1 of them hoes",0.0,0.0,1.0,1.0,0.0
102
+ SG-Reddit-41,You don't go to jail for being gay lmao. There is a law that criminalizes sex between 2 males but it's not enforced.,0.0,0.0,0.0,0.0,1.0
103
+ AU-Reddit-1,Poof doof and bush doofs,0.0,0.0,0.0,0.0,0.0
104
+ SG-YouTube-62,"So, an Iraqi refugee, in Sweden, burns the ISIS Terror Manual....And that´s a bad deed?",0.0,0.0,0.0,0.0,0.0
105
+ SBIC-329,How did Jews save money on remote communication during WW2? They used smoke signals.,1.0,1.0,1.0,1.0,1.0
106
+ SG-YouTube-41,Malaysia is for everybody. We have millions of Indons bangkaideshi Rohingyas Burmese Pinoys Vietnamese or the Africans..be it legal or illegal. They made this country as theirs now. What a blessing.,0.0,0.0,0.0,0.0,0.0
107
+ SG-Reddit-0,"Wow, that whole section on Singaporeanisms/dialect terms.
108
+
109
+ ""We may speak Chinese, but we're not China Chinese"" in a nutshell.",0.0,0.0,0.0,0.0,0.0
110
+ GB-Reddit-60,"I'm queer, and i've never said ""yass"" in place of ""yes"".",0.0,0.0,0.0,0.0,0.0
111
+ SBIC-634,These fat hoes think they slick posting neck up pics and shit,1.0,1.0,0.0,1.0,1.0
112
+ SBIC-818,Why did the sun never set on the British Empire? Even God didn't trust the English in the dark.,1.0,1.0,1.0,1.0,1.0
113
+ SG-YouTube-5,Farah kong pinoy is goood worker so call. most of them Prefer their own kind when come hired,1.0,1.0,1.0,0.0,1.0
114
+ SG-Reddit-46,"Gays are still human. From here you can see the black gay being a dick to Mr Kim while the other gay is understanding.
115
+
116
+ Be like Mr Kim. You do you, I do I.",1.0,0.0,0.0,1.0,0.0
117
+ SBIC-153,"A subreddit meant for guys who get cucked to come together and talk about it
118
+ If you go to the sub r/deadbedrooms its literally guys who are in relationships were they get cucked because the women only want them for their money and support.",0.0,0.0,1.0,0.0,0.0
119
+ SBIC-97,"@USER
120
+ Dat damn dog eats betta den most colored folk do.",1.0,1.0,1.0,1.0,1.0
121
+ SBIC-316,Hitler just suck at running He cant even finish a race,1.0,1.0,1.0,0.0,1.0
122
+ SBIC-891,"i knew a guy who died in a terrorist attack . <repeat> his last words were "" allahu akbar """,1.0,1.0,0.0,1.0,1.0
123
+ ZA-YouTube-64,"dont forget, umkhonto we sizwe who was tasked with fighting the Apartheid government, was also seen as terrorists",0.0,0.0,0.0,0.0,0.0
124
+ SG-Reddit-30,"Geylang is huge. Geylang Serai is mostly halal, while the rest is haram af.",0.0,0.0,0.0,0.0,0.0
125
+ AU-Reddit-46,“Fukn chinks are spying on me fishes”,1.0,1.0,1.0,0.0,1.0
126
+ AU-Reddit-72,"Majority of people in this country are selfish, miserable bastards. Simple.
127
+
128
+ Never mind, some dickhead pointed out only 41.1% of Australians are dirty, old cunts. My bad!",1.0,1.0,0.0,1.0,1.0
129
+ SBIC-6,"""""""i've got these fucking barney rubbles in my mentions""""""",0.0,0.0,0.0,0.0,0.0
130
+ ZA-YouTube-14,Every Boer needs a job unfortunately. 😂,1.0,0.0,1.0,0.0,0.0
131
+ SBIC-170,All I want for Christmas is an absolute elimination of Islam in the western world.,1.0,1.0,1.0,1.0,1.0
132
+ SBIC-750,"What's black and blue, and doesn't like sex? The kid in my trunk.",1.0,0.0,0.0,1.0,1.0
133
+ SBIC-777,What's worse than raping Helen Keller? Breaking her fingers so she can't tell anybody.,1.0,1.0,1.0,1.0,1.0
134
+ SBIC-133,"A black man walked into a bar.... Sorry, I meant 3/5ths of a man walked into a bar",1.0,1.0,1.0,1.0,1.0
135
+ SBIC-337,How do you know if your dick is big? When she starts screaming “nooo please stop raping me”,0.0,0.0,0.0,1.0,0.0
136
+ SBIC-229,"Coffee just dinged, so I'm going to finish this story quickly.",0.0,0.0,0.0,0.0,0.0
137
+ SBIC-481,Just went to my first Chanukah party Had now idea that Jews were so adept at frying,1.0,1.0,0.0,0.0,1.0
138
+ GB-YouTube-62,"ITV has already replaced Philips spot on This Morning with a couple of arabic speaking immigrants just off the boat.
139
+
140
+ ITV says their new presenter's represent their wider and majority audience.",1.0,1.0,1.0,0.0,0.0
141
+ SBIC-945,what 's the difference between harry potter and jews ? harry escaped the chamber,1.0,1.0,1.0,1.0,1.0
142
+ SBIC-885,how do you starve a black man . <repeat> put his food stamps under his work boots .,1.0,1.0,1.0,1.0,1.0
143
+ SBIC-303,"Has to be a parody account. @USER I'm not sexist, but women just shouldn't be sports announcers.",1.0,1.0,1.0,1.0,1.0
144
+ SBIC-98,@USER @USER I'm afraid no chance 4 US 2 get a really independent potus.Swamp drains anyone.Doubt… URL,0.0,0.0,0.0,0.0,0.0
145
+ SBIC-2,"""""""Almost called you to ask if you were okay... u were eating A LOT of food on your IG story yday. Are you going through things?"""" Wow thx &#128528;&#128514;""",0.0,0.0,0.0,0.0,0.0
146
+ SBIC-843,YALL MOTHERFUCKER NORMIES WILL GET SPOILERS ON SEASON 8 OF GAME OF THRONES IF YOU DONT LEAVE NOW,0.0,0.0,0.0,0.0,0.0
147
+ SBIC-643,"This mf made me cum not 1,2,3, but 4 times tonight. I made him bust 3. Nigga had stamina 4 sho damn ....",0.0,0.0,0.0,0.0,1.0
148
+ GB-Reddit-49,"“The samples won’t delay, but the cables—“
149
+
150
+ “There’s another way. Say something. Anything.”
151
+
152
+ “I DIDN’T REALISE THIS SHOW WAS ABOUT GAYS!”
153
+
154
+ “…anything but that.”",1.0,1.0,1.0,0.0,0.0
155
+ AU-Reddit-14,Recovering Mormon and fellow homo here. Congratulations on the change in lifestyle. Moved to Brisbane in 2017. Feel free to send a DM if you'd like,0.0,0.0,0.0,0.0,0.0
156
+ ZA-Reddit-30,"The bad guys are always ""terrorists"" aren't they?",0.0,0.0,0.0,0.0,0.0
157
+ SG-YouTube-61,@USER  Gay Talents are challenging the law...now that talented lawyers are coming out..,1.0,0.0,0.0,0.0,1.0
158
+ SBIC-650,Today I got a joke email about adopting a fast-food delivery robot and that was more believable than the Trump presidency #aprilfoolsday,0.0,0.0,0.0,0.0,0.0
159
+ SBIC-117,"A Cop Told A Suspect To Put His Hands Up, And Then He Shot Him. Do You Know Why? Because He Was Black",1.0,0.0,1.0,1.0,1.0
160
+ SG-YouTube-43,@USER Since when Singapore belong to Chinese? If so why do we have Malay and Indian MPs?,0.0,0.0,0.0,0.0,0.0
161
+ SBIC-691,What do my wife and the water temple have in common? I can spend hours beating them.,1.0,1.0,1.0,1.0,1.0
162
+ SBIC-759,"What's the difference between Santa Claus and a Holocaust Jew? Santa Claus is jolly, fat, and goes DOWN the chimney.",1.0,1.0,1.0,0.0,1.0
163
+ SBIC-800,"When you ask a question and the person can't answer it without fckn arguing or jumping to something irrelevant. Well, thanks anyway!",0.0,0.0,0.0,0.0,0.0
164
+ SBIC-75,*most boys @USER I'm not sexist but all the internet does is show that most girls don't know how to form their own opinions.,1.0,1.0,1.0,1.0,1.0
165
+ AU-YouTube-15,What part of hammass being labeled terrorists did you miss???,0.0,0.0,0.0,1.0,0.0
166
+ AU-Reddit-63,Also Basil “I hate homeless people”. Cunt.,0.0,1.0,0.0,1.0,1.0
167
+ SBIC-86,9/11 jokes always seem good in the beginning But then they come crashing down,0.0,0.0,0.0,0.0,1.0
168
+ GB-Reddit-14,"Of you move to lo typool for a queer Community space that's all you wouk have.
169
+
170
+ There is less than shit all in Pontypool.",1.0,0.0,0.0,0.0,1.0
171
+ AU-Reddit-48,Probably should have made it more clear that this post was just for laughs so that people didn’t feel the need to define chinks...,1.0,1.0,1.0,0.0,1.0
172
+ SBIC-646,This why I am the way I am bc mfs is out of this world retarded &#128514;&#128514;,0.0,0.0,0.0,0.0,0.0
173
+ SBIC-595,Spreading a woman's legs is like spreading butter It can be done with a credit card but I prefer to use a knife,1.0,1.0,1.0,1.0,1.0
174
+ GB-Reddit-28,"No it’s absolutely not normal.
175
+
176
+ It might be normal if his whole family has a drug problem but honestly I wouldn’t go near a family like that with a barge pole. You’re just asking for trouble 🚩🚩🚩",0.0,0.0,0.0,0.0,0.0
177
+ SBIC-403,I like my women like I like my firewood Chopped up and in my basement,1.0,1.0,1.0,1.0,1.0
178
+ GB-YouTube-40,@USER  Donald Trump he is more British than the ones we have 50% Mommy is a Jock and he knows how to run Hotels he will get a better deal for our Illegals.,0.0,0.0,0.0,1.0,1.0
179
+ GB-Reddit-4,Taking this opportunity for a fag break before we're on! Not heard our entry yet,0.0,0.0,0.0,0.0,0.0
180
+ SBIC-240,Dicks are basically ar-15s Only disabled kids whip em out in class,1.0,1.0,1.0,1.0,0.0
181
+ SBIC-672,We were just kids when we fell in love Not knowing what it was I will not give you up this time.<3 — thinking about old memories,0.0,0.0,0.0,0.0,0.0
182
+ SBIC-254,Do you know what’s the worst part of a blow job ? It’s when you realize the 72 virgins were a lie.,1.0,0.0,1.0,0.0,1.0
183
+ AU-Reddit-41,"House of Spice in Baldivis does a delicious goat curry. Mother India in Fremantle is amazing too, but they’re only open on weekends, and I don’t think they do a goat curry.",0.0,0.0,0.0,0.0,0.0
184
+ SBIC-471,"It's not rape If you yell ""Surprise!""",0.0,0.0,1.0,1.0,1.0
185
+ ZA-YouTube-58,no one cares... Long live Uganda !!! Stand strong Africa. Protect the children from the rainbow mafia. 🫡,1.0,0.0,1.0,0.0,1.0
186
+ SBIC-156,A wife is killed after a car drives through her living room and kills her. Who's fault is it? The wife's because she should've been in the kitchen,1.0,1.0,1.0,1.0,1.0
187
+ SBIC-300,"Hahaha, you're so funny! You're not asexual! There's no such thing! Humans are MADE for sex! You just haven't had GOOD sex yet! Someday you'll meet the right guy and you'll want to screw his brains out, and then you'll remember how insane you were to ever say you're asexual!",0.0,1.0,1.0,1.0,0.0
188
+ SG-YouTube-37,"Zero Tolerance for radical
189
+ Religous terrorists ideology Acts.",0.0,0.0,0.0,0.0,0.0
190
+ SBIC-863,a gay muslim walks into a bar . <repeat> he ordered shots for everyone .,1.0,1.0,1.0,0.0,1.0
191
+ SBIC-219,Blue Bell ice cream has one showing five kids one black playing in the fields and barn .,0.0,0.0,0.0,0.0,1.0
192
+ SBIC-603,Takes pride in his work and is extremely thorough Were not the words I wanted to see printed on my Sex Offenders file.,0.0,0.0,0.0,0.0,1.0
193
+ SBIC-80,135 Billion dollars a year due to Illegal Aliens .....NO MORE IMMIGRATION.....PERIOD....WE ARE FULL !,1.0,0.0,1.0,1.0,1.0
194
+ ZA-Reddit-18,Poplak's other quote should get more attention: Singing “Kill the Boer” while wearing Gucci loafers is just cosplay by a racketeer masquerading as a politician.,0.0,0.0,0.0,0.0,0.0
195
+ SG-Reddit-48,"Fine, cane, jail, exile, and execute this homo now!",1.0,1.0,1.0,1.0,1.0
196
+ AU-YouTube-29,JUSTIN TRUDEAU PM OF CANADA SELF PROCLAIMED FEMINIST LOVES ENSLAVEMENT OF WOMEN BY ISLAMIC TERRORISTS BUT MAYBE KARMA IS COMING HOME TO THIS BASTARD HE HAS CORONAVIRUS HOPEFULLY IT WILL BE FATALE,1.0,1.0,1.0,1.0,1.0
197
+ SBIC-465,"In 1977, a prominent feminist lawyer Ruth Bader Ginsburg wrote the “age of consent” for sexual acts should be lowered to the age of 12.",0.0,0.0,0.0,0.0,0.0
198
+ SG-Reddit-49,"No homo please, this is Singapore",1.0,1.0,1.0,1.0,1.0
199
+ SBIC-753,What's even worse than black men? Black women feminists.,1.0,1.0,1.0,1.0,1.0
200
+ SBIC-543,Over 2000 people went to Vegas to meet Jason Aldeen 58 also got to meet Tom Petty.,0.0,0.0,0.0,0.0,0.0
201
+ SBIC-25,"""How can I help if she doesn't even try to explain what's """"the help"""" she need & let me translate her needs from screenshot of WhatsApp convo?""",0.0,0.0,0.0,0.0,0.0
202
+ ZA-YouTube-21,😊 i like the version of kiss 💋 the boer kiss the farmer,0.0,0.0,0.0,0.0,0.0
203
+ SG-Reddit-69,"Have to agreed. With such high volume of PRC tourists. Not infected? Probably people dead already there, and it is not reported and pass off as another typical bodycount.",1.0,0.0,0.0,0.0,1.0
204
+ SBIC-4,"""""""Boys convince themselves they are a man by drinking lots of beer and having a vagina nearby to stick themselves into."""" FUCKING NAILED IT""",1.0,1.0,1.0,1.0,0.0
205
+ SBIC-814,Why couldn’t Sally go to school Sally has crippling depression,0.0,0.0,0.0,0.0,0.0
206
+ GB-YouTube-18,saw a youtuber channel eh went to village in slovkia alot of the gypsy people there want to come back to uk,0.0,1.0,0.0,0.0,1.0
207
+ SBIC-367,I don't think Tucker realized how bad it is and Andrew presented the case well!,0.0,0.0,0.0,0.0,0.0
208
+ AU-Reddit-71,"Ah the irony, when Australians become the boat people.",0.0,0.0,1.0,1.0,1.0
209
+ AU-Reddit-43,"Check out the curries at Logical Indian at Rundle Mall, Next to HnM.",0.0,0.0,0.0,0.0,0.0
210
+ SBIC-44,"""imagine having such a pathetic relationship with christ that'd you would """"consider"""" paganism @USER""",1.0,0.0,0.0,0.0,1.0
211
+ SBIC-931,there once was thug named brown who bum rushed a cop with a frown three shots a thunder he 's now <number> foot under and so 's the rest of the town,0.0,0.0,1.0,0.0,0.0
212
+ SBIC-452,"If the government is shut down and I don't notice any difference, I should be able to get a full refund on the money they've taken that I'm apparently getting nothing in exchange for.",0.0,0.0,0.0,0.0,0.0
213
+ GB-YouTube-45,We pakis are the most corrupt folks.,1.0,1.0,1.0,0.0,1.0
214
+ SBIC-184,"And then there 's Asiacourt , the once beautiful , safe , WHITE , area of Scarborough ... ( and the last i checked ) was a garbage infested Chinease outpost .",1.0,1.0,1.0,1.0,1.0
215
+ SBIC-292,Good news! AIDS is no longer the leading cause of death in Africa! Seems like they're finally starving before a mosquito can bite them.,1.0,1.0,1.0,1.0,1.0
216
+ SBIC-932,this is a retarded question but what's the Pokemon in your avatar,0.0,0.0,0.0,0.0,0.0
217
+ AU-Reddit-60,">So of course like a modern homo
218
+
219
+ Do gay men refer to themselves (and each other?) as homos? I only know two gay men but I've never heard them use that term.",0.0,1.0,0.0,1.0,0.0
220
+ SBIC-212,Black men always lock their own kids out of their life. Lock this thread if you agree.,1.0,1.0,1.0,1.0,0.0
221
+ SBIC-590,"Some twoliners about Ethiopia Why did the Ethiopian mother span dental floss across the desert?
222
+ So her children could play in the shade for once.
223
+
224
+ How are barcodes actually made?
225
+ By photographing Ethiopian families.
226
+
227
+ And What do the numbers at the bottom of a barcode mean?
228
+ How many Ethiopians are standing there.
229
+
230
+ What's considered to be the most dangerous ralley on earth?
231
+ Through the Ethiopian desert in a food cart.
232
+
233
+ How do you recognize a rich Ethiopian?
234
+ His belt is a Rolex.
235
+
236
+ How do you get 100 Ethiopians into a schoolbus?
237
+ Throw a grain of rice inside.
238
+
239
+ How do you get them out again?
240
+ You can't, they are overfed.
241
+
242
+ Which place in Ethiopia has the highest population density?
243
+ Wherever the wind blows.
244
+
245
+ What do you call a vomiting Ethiopian?
246
+ Show-off
247
+
248
+ The Red Cross once sent piles of medication to Ethiopia, for humanitarian aid. Why were they never touched?
249
+ They said: ""Take them after each meal.""
250
+
251
+ How do you make Ethiopians rave?
252
+ Nail a piece of toast to the ceiling.",1.0,1.0,1.0,1.0,1.0
253
+ ZA-YouTube-51,"​ @USER  kwerekwere really? When racists are kicking your but in South Africa. You need to learn and educate yourself about who you are, you are lost.",0.0,0.0,1.0,1.0,0.0
254
+ ZA-YouTube-9,"The arrogance, sanctimonious and self-righteous attitude displayed by farmers who stole land rejecting compensation from the very people they wronged. Even satan is in awe.",0.0,0.0,0.0,0.0,1.0
255
+ SBIC-41,"""i can't stand these """"grown"""" ass females &#129318;&#127997;‍♀️&#129318;&#127997;‍♀️ how you """" grown """" but childish as hell ?! &#128553;&#128514;&#129318;&#127997;‍♀️&#129318;&#127997;‍♀️""",0.0,1.0,1.0,0.0,1.0
256
+ GB-Reddit-56,"Yet we're still dithering lest we offend the God botherers.
257
+
258
+ End this now.",0.0,0.0,1.0,1.0,0.0
259
+ SBIC-315,"Hi brothers and sisters , i live in wiltshire so if there is anyone else here from wiltshire let me know .",0.0,0.0,0.0,0.0,0.0
260
+ GB-YouTube-47,"@USER  Umh! Hitler and the Nazis who pillaged, terrorised and murdered the French??",0.0,0.0,0.0,0.0,0.0
261
+ SBIC-365,"I cringe whenever I see a picture of myself from before 2011, because my eyebrows were just so fucking horrendous",0.0,0.0,0.0,0.0,0.0
262
+ SBIC-701,What do you call a little boy with no arms and no legs? You call him names.,1.0,1.0,1.0,0.0,1.0
263
+ SBIC-774,"What's the size of a priest's bed? Come on, every kid should know this.",1.0,1.0,1.0,0.0,1.0
264
+ AU-Reddit-11,"It is a thing, only different now is we are full of dumb cunts who don't use the other half of their brain.",0.0,0.0,0.0,0.0,0.0
265
+ SBIC-803,Where are Jews most found? In the atmosphere.,1.0,1.0,1.0,1.0,1.0
266
+ ZA-Reddit-21,"I said yes, because fuck that murderous cunt.",0.0,0.0,0.0,0.0,0.0
267
+ SBIC-158,Abortion It really brings out the kid in you.,0.0,0.0,0.0,0.0,0.0
268
+ SBIC-37,"""Snigger"" -> ""Laughrican American""",1.0,1.0,1.0,1.0,1.0
269
+ ZA-YouTube-53,"We want our rainbow back 😢
270
+
271
+ Eff is for gays, only gay people must vote eff.",1.0,1.0,1.0,1.0,0.0
272
+ SBIC-844,Yall black ass hoes aint east African,1.0,1.0,1.0,1.0,1.0
273
+ SBIC-853,You mad because your bitch found out you a hoe &#128514;&#129335;&#127997;‍♀️,0.0,1.0,0.0,0.0,0.0
274
+ ZA-Reddit-56,"Kill the boer is a struggle song it'll remain that way, whether you like it or not.",0.0,0.0,0.0,0.0,0.0
275
+ SBIC-496,Man that run game ain't no hoe. Fuck Alex. don't even need his bitch ass,0.0,0.0,0.0,0.0,1.0
276
+ SBIC-248,Disgusting whore has sex with her gay friend and gets HIV.,1.0,1.0,1.0,1.0,1.0
277
+ SBIC-252,Do you ever ask yourself why you have a screen name that 's reminiscent of the sound a butthole makes after too many beans ? .,0.0,0.0,0.0,0.0,0.0
278
+ SBIC-408,I liked a @USER video from @USER URL SMB3 Boss Rush Cave by Zach ~ SUPER MARIO MAKER ~ NO COMMENTARY,0.0,0.0,0.0,0.0,0.0
279
+ SBIC-322,"How I explain my ordeal of 25 years of Inceldom
280
+ I haven't lost my virginity because I never lose.",0.0,0.0,0.0,0.0,0.0
281
+ ZA-Reddit-14,"Definitely has to do with “Kill the Boer”
282
+
283
+ Rand is weakening, even to the Euro.
284
+
285
+ As it seemed to be getting stronger something happens again.",0.0,0.0,0.0,0.0,0.0
286
+ GB-Reddit-26,"Stale fag smoke, an overcooked (burnt) breakfast, Stella, boak and suncream.
287
+
288
+ So like Benidorm basically.",0.0,0.0,0.0,0.0,0.0
289
+ SBIC-792,What’s the difference between a women and a computer You can punch information into a computer,1.0,1.0,1.0,1.0,1.0
290
+ SBIC-458,If you hit a girl Is it destruction of property?,1.0,1.0,1.0,1.0,1.0
291
+ SBIC-118,A Jew walks in to a bar And then the metal door closes behind him,1.0,1.0,1.0,1.0,1.0
292
+ SBIC-680,What did Hitler tell the jews when they can't solve a riddle. take a gas,1.0,1.0,1.0,1.0,1.0
293
+ SG-Reddit-68,"Just ask them to give up citizenship, take up PRC citizenship and move to China",1.0,0.0,0.0,0.0,1.0
294
+ SBIC-164,"After going blind a man stabbed himself to death. Know Why?
295
+
296
+ He could no longer see the point",0.0,0.0,0.0,0.0,0.0
297
+ SBIC-5,"""""""Don't worry, don't be afraid -- ever -- because... this is just a ride!"""" _Bill Hicks""",0.0,0.0,0.0,0.0,0.0
298
+ SBIC-373,"I feel that since political correctness is such a massive topic it's good to bring it up. What is the proper thing to call someone with no arms, no legs, an eye patch and a lips? Names.",0.0,0.0,0.0,0.0,0.0
299
+ SBIC-508,"My bible says what applies to men applies to women so don't tell me it's a man's nature to cheat & they are weak,don't tell me that rubbish",0.0,0.0,0.0,0.0,1.0
300
+ AU-Reddit-10,"They knew they were doing the wrong thing, but they'd already decided to do it, so they found a way to justify it to themselves. Stupid, selfish cunts. Everyone on that boat deserves an uppercut.",0.0,0.0,0.0,1.0,0.0
301
+ AU-Reddit-54,Lebs. Guaranteed.,1.0,0.0,0.0,0.0,0.0
302
+ SBIC-630,There is one language I don't understand and that language is.....Snowflake libtard!,0.0,1.0,1.0,1.0,1.0
303
+ AU-Reddit-2,Yes cunt… it is,0.0,0.0,0.0,0.0,1.0
304
+ SBIC-192,"Are you guys tired of being lumped in with rich old white men in politics and in business, while you toil away and live from paycheck to paycheck?",0.0,0.0,1.0,1.0,1.0
305
+ SBIC-712,What do you call an autistic gymnast? A leo-Tard,1.0,1.0,1.0,1.0,1.0
306
+ AU-YouTube-72,Is Trudeau now pedophile or homosexual?,0.0,1.0,1.0,1.0,1.0
307
+ SBIC-84,4) safety gloves. It's time we start calling out the hypocrisy and end our coddling of religion. No more tax breaks for churches. No more,0.0,0.0,0.0,0.0,1.0
308
+ SBIC-175,All you muzzy lovers need to do one thing. Tell muzzies in the mideast to leave Israel alone. Don't start no shit won't be no shit. #Israel,1.0,1.0,1.0,1.0,1.0
309
+ SBIC-867,ah why is brushing the hair so damn difficult and exhausting ;-; that's the worst part every morning,0.0,0.0,0.0,0.0,0.0
310
+ SBIC-838,"With the polarization and hate I'm seeing, it seems to me that there are a lot of people that are going to die soon.",0.0,0.0,0.0,0.0,0.0
311
+ SBIC-358,"I am a landlord
312
+ Every time I have someone who is at least a 7(male or female), I overcharge them on rent.",1.0,0.0,0.0,0.0,1.0
313
+ GB-YouTube-71,"What a joke. All these queers are not getting along. The whole idealogy is sinful & disgusting. These are totally confused people, so no wonder there is chaos within their ranks.",1.0,1.0,1.0,1.0,1.0
314
+ GB-YouTube-2,"@USER  Very few Poles in Ireland now, they went to better places once the Celtic Tiger went tits up.",0.0,0.0,0.0,0.0,1.0
315
+ SBIC-591,Sometimes I think I enjoy gay sex... But that's just the French in me,1.0,1.0,1.0,1.0,0.0
finetune/data_splits/CREHate_valid_tagged.csv ADDED
The diff for this file is too large to render. See raw diff
 
finetune/dataset.py ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Standard
2
+ import os
3
+ import sys
4
+ import re
5
+ import random
6
+
7
+ # PIP
8
+ import pandas as pd
9
+ import numpy as np
10
+ import torch
11
+ from torch.utils.data import Dataset, DataLoader
12
+ import pytorch_lightning as pl
13
+ from transformers import AutoTokenizer, T5Tokenizer
14
+
15
+ # Custom
16
+ current = os.path.dirname(os.path.realpath(__file__))
17
+ parent = os.path.dirname(current)
18
+ sys.path.append(parent)
19
+
20
+ import utils
21
+
22
+ class CSV2Dataset(Dataset):
23
+ def __init__(self, cfg, filename, option):
24
+ self.cfg = cfg
25
+ self.filename = filename
26
+ self.option = option
27
+
28
+ self.df = self.get_df()
29
+ if self.option == 'train':
30
+ self.df = self.df.sample(frac=1)
31
+
32
+ if 't5' in self.cfg.model:
33
+ self.tokenizer = T5Tokenizer.from_pretrained(self.cfg.model)
34
+ else:
35
+ self.tokenizer = AutoTokenizer.from_pretrained(self.cfg.model)
36
+ if len(self.cfg.additional_tokens) > 0:
37
+ num_added_toks = self.tokenizer.add_tokens(self.cfg.additional_tokens)
38
+
39
+ self.xs = self.preprocess()
40
+
41
+ if self.option != 'test':
42
+ self.ys = self.get_ys()
43
+
44
+ def get_df(self):
45
+ return pd.read_csv(self.filename,encoding='utf-8')
46
+
47
+ def get_tokenizer(self):
48
+ return self.tokenizer
49
+
50
+ def preprocess(self):
51
+ if self.option == 'test':
52
+ xs = self.df[self.cfg.test_col]
53
+ else:
54
+ xs = self.df[self.cfg.sent_col]
55
+
56
+
57
+ if self.cfg.remove_special_tokens:
58
+ xs = utils.remove_special_tokens(xs)
59
+
60
+ if self.cfg.if_arabic:
61
+ arabert_prep = ArabertPreprocessor(model_name=self.cfg.model)
62
+ xs = [arabert_prep.preprocess(x) for x in xs]
63
+
64
+
65
+ encoding = self.tokenizer(
66
+ list(xs),
67
+ padding='max_length',
68
+ max_length=self.cfg.max_length,
69
+ truncation=True,
70
+ return_tensors='pt'
71
+ )
72
+
73
+ xs = [(input_ids,attention) for input_ids,attention in zip(encoding.input_ids,encoding.attention_mask)]
74
+ return xs
75
+
76
+ def get_ys(self):
77
+ if 't5' in self.cfg.model:
78
+ encoding = self.tokenizer(
79
+ [str(label) for label in self.df[self.cfg.label_col]],
80
+ padding='max_length',
81
+ max_length=self.cfg.max_length,
82
+ truncation=True,
83
+ return_tensors='pt'
84
+ )
85
+ lm_labels = encoding.input_ids
86
+ lm_labels[lm_labels[:, :] == self.tokenizer.pad_token_id] = -100
87
+
88
+ ys = [(input_ids,attention) for input_ids,attention in zip(lm_labels,encoding.attention_mask)]
89
+
90
+ return ys
91
+ return [int(y) for y in self.df[self.cfg.label_col].tolist()]
92
+
93
+ def __getitem__(self, idx):
94
+ if self.option == 'test':
95
+ return self.xs[idx]
96
+ else:
97
+ return self.xs[idx], self.ys[idx]
98
+
99
+ def __len__(self):
100
+ return len(self.xs)
101
+
102
+ def batch_sampling(batch_size,data_len,is_test=False):
103
+ seq_lens = range(data_len)
104
+ sample_indices = [ seq_lens[i:i+batch_size] for i in range(0,data_len, batch_size)]
105
+
106
+ if not is_test:
107
+ random.shuffle(sample_indices)
108
+
109
+ return sample_indices
finetune/finetune.py ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Standard
2
+ import os
3
+ import sys
4
+ import shutil
5
+ import argparse
6
+
7
+ # PIP
8
+ from tqdm import tqdm
9
+ import random
10
+ import pandas as pd
11
+ from sklearn.metrics import accuracy_score, precision_recall_fscore_support
12
+
13
+ import torch
14
+ from torch import nn
15
+ from torch.utils.data import DataLoader
16
+
17
+ from datasets import Dataset
18
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer, T5Tokenizer,T5ForConditionalGeneration
19
+ from transformers import AdamW, get_linear_schedule_with_warmup
20
+
21
+ # Custom
22
+ from config import Config
23
+ from dataset import CSV2Dataset, batch_sampling
24
+
25
+ parser = argparse.ArgumentParser()
26
+ parser.add_argument('--config_file', type=str, help='Config file name')
27
+ parser.add_argument('--model', type=str, default=None, help='Model name')
28
+ parser.add_argument('--checkpoint_filename', type=str, default=None)
29
+ parser.add_argument('--best_filename', type=str, default=None)
30
+
31
+ parser.add_argument('--train_data', type=str, default=None)
32
+ parser.add_argument('--val_data', type=str, default=None,
33
+ help='Train Label column name')
34
+ parser.add_argument('--test_data', type=str, default=None,
35
+ help='Train Label column name')
36
+ parser.add_argument('--test_res', type=str, default=None,
37
+ help='Train Label column name')
38
+
39
+ parser.add_argument('--sent_col', type=str, )
40
+ parser.add_argument('--label_col', type=str, default=None,
41
+ help='Train Label column name')
42
+ parser.add_argument('--num_labels', type=str, default=None)
43
+
44
+ parser.add_argument('--test_res_col', type=str, default=None,
45
+ help='Test result column name')
46
+ parser.add_argument('--test_col', type=str,)
47
+
48
+ parser.add_argument('--train', type=str, default=None,
49
+ help='Train Label column name')
50
+ parser.add_argument('--evaluate', type=str, default=None,
51
+ help='Train Label column name')
52
+ parser.add_argument('--test', type=str, default=None,
53
+ help='Train Label column name')
54
+
55
+ parser.add_argument('--resume', type=str, default=None,
56
+ help='Train Label column name')
57
+ parser.add_argument('--resume_model', type=str, default=None,
58
+ help='Train Label column name')
59
+
60
+ args = parser.parse_args()
61
+
62
+
63
+ def save_checkpoint(state, is_best, filename, best_filename):
64
+ if is_best:
65
+ print('Best F1 Updated -- Saving Best Checkpoint')
66
+ torch.save(state, best_filename)
67
+
68
+ def train(train_loader, model, optimizer, scheduler, epoch, epochs):
69
+ model.train()
70
+
71
+ total_loss, total_accuracy = 0, 0
72
+ print("-"*30)
73
+
74
+ loop = tqdm(train_loader, leave=True)
75
+ for (input_ids,attention_mask),labels in loop:
76
+ optimizer.zero_grad()
77
+
78
+ input_ids = input_ids.to(device)
79
+ attention_mask = attention_mask.to(device)
80
+
81
+
82
+ if 't5' in cfg.model:
83
+ lm_label = labels[0].to(device)
84
+ label_mask = labels[1].to(device)
85
+ outputs = model(input_ids, attention_mask=attention_mask,
86
+ labels=lm_label, decoder_attention_mask = label_mask)
87
+ else:
88
+ labels = labels.to(device)
89
+
90
+ outputs = model(input_ids, attention_mask=attention_mask,
91
+ labels=labels)
92
+
93
+ loss = outputs.loss.mean()
94
+ total_loss += loss.item()
95
+
96
+ outputs.loss.mean().backward()
97
+
98
+
99
+
100
+ loop.set_description(f'Epoch {epoch}')
101
+ loop.set_postfix(loss=loss.item())
102
+
103
+ optimizer.step()
104
+ scheduler.step()
105
+
106
+ avg_loss = total_loss / len(train_loader)
107
+ print(f" {epoch+1} Epoch Average train loss : {avg_loss}")
108
+
109
+ def validate(valid_loader, model, tokenizer):
110
+ model.eval()
111
+
112
+ total_true = []
113
+ total_pred = []
114
+ real_total_true = []
115
+ real_total_pred = []
116
+
117
+ loop = tqdm(valid_loader, leave=True)
118
+ for (input_ids,attention_mask),labels in loop:
119
+ input_ids = input_ids.to(device)
120
+ attention_mask = attention_mask.to(device)
121
+
122
+
123
+ with torch.no_grad():
124
+ if 't5' in cfg.model:
125
+ lm_label = labels[0].to(device)
126
+ label_mask = labels[1].to(device)
127
+ outputs = model.module.generate(input_ids, attention_mask=attention_mask,max_length=3)
128
+ pred = [tokenizer.decode(label) for label in outputs]
129
+ pred = [l.replace('<pad>','').replace(' ','')[0] for l in pred]
130
+ try:
131
+ _pred = [int(l) for l in pred]
132
+ pred = _pred
133
+ except:
134
+ _pred = []
135
+ for l in pred:
136
+ if l == '0' or l == '1':
137
+ _pred.append(int(l))
138
+ else:
139
+ _pred.append(l)
140
+ pred = _pred
141
+
142
+
143
+ lm_label[lm_label[:, :] == -100] = tokenizer.pad_token_id
144
+ true = [tokenizer.decode(label) for label in lm_label]
145
+ true = [int(l[0]) for l in true]
146
+
147
+ _pred = []
148
+ _true = []
149
+
150
+ for i in range(len(true)):
151
+ if type(pred[i]) is int:
152
+ _pred.append(pred[i])
153
+ _true.append(true[i])
154
+
155
+
156
+ else:
157
+ labels = labels.to(device)
158
+
159
+ outputs = model(input_ids, attention_mask=attention_mask,
160
+ labels=labels)
161
+
162
+ pred = [torch.argmax(logit).cpu().detach().item() for logit in outputs.logits]
163
+
164
+
165
+ true = [label for label in labels.cpu().numpy()]
166
+
167
+
168
+ total_true += true
169
+ total_pred += pred
170
+
171
+ if 't5' in cfg.model:
172
+ real_total_true += _true
173
+ real_total_pred += _pred
174
+
175
+ try:
176
+ precision, recall, f1, _ = precision_recall_fscore_support(total_true, total_pred, average='macro')
177
+ accuracy = accuracy_score(total_true, total_pred)
178
+
179
+ print(f"validation accuracy : {accuracy: .4f}")
180
+ print(f"validation Precision : {precision: .4f}")
181
+ print(f"validation Recall : {recall: .4f}")
182
+ print(f"validation F1 : {f1: .4f}")
183
+ except:
184
+ precision, recall, f1, _ = precision_recall_fscore_support(real_total_true, real_total_pred, average='macro')
185
+ accuracy = accuracy_score(real_total_true, real_total_pred)
186
+
187
+ print(f"No. of int type output: {len(real_total_true)}/{len(total_true)}")
188
+ print(f"validation accuracy : {accuracy: .4f}")
189
+ print(f"validation Precision : {precision: .4f}")
190
+ print(f"validation Recall : {recall: .4f}")
191
+ print(f"validation F1 : {f1: .4f}")
192
+
193
+ return f1
194
+
195
+ def test(test_loader,model,tokenizer):
196
+ model.eval()
197
+
198
+ final_preds = []
199
+ idss = []
200
+
201
+ loop = tqdm(test_loader, leave=True)
202
+ for input_ids,attention_mask in loop:
203
+
204
+ input_ids = input_ids.to(device)
205
+ attention_mask = attention_mask.to(device)
206
+ with torch.no_grad():
207
+ outputs = model(input_ids, attention_mask=attention_mask)
208
+
209
+ argmax = [torch.argmax(logit).cpu().detach().item() for logit in outputs.logits]
210
+ print(argmax)
211
+ final_preds += argmax
212
+ idss += input_ids.cpu()
213
+
214
+ print(len(idss))
215
+ sents = [tokenizer.decode(ids) for ids in idss]
216
+ print(len(sents))
217
+
218
+ print(len(final_preds))
219
+
220
+ return (sents,final_preds)
221
+
222
+
223
+ device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
224
+ cfg = Config(args.config_file)
225
+
226
+ for key, value in vars(args).items():
227
+ if value != None:
228
+ exec("cfg.%s = '%s'" % (key,value))
229
+
230
+
231
+ print(cfg.model, cfg.sent_col, cfg.label_col)
232
+
233
+ cfg.num_workers = torch.cuda.device_count()
234
+ print(cfg.test_res_col)
235
+
236
+ print(cfg.checkpoint_filename)
237
+
238
+ if not os.path.exists('./checkpoints'):
239
+ os.mkdir('./checkpoints')
240
+
241
+ print('Train:',cfg.train)
242
+ print('Evaluate:',cfg.evaluate)
243
+ print('Test:',cfg.test)
244
+
245
+ if 't5' in cfg.model:
246
+ model = T5ForConditionalGeneration.from_pretrained(cfg.model,resume_download=True)
247
+ else:
248
+ model = AutoModelForSequenceClassification.from_pretrained(cfg.model,resume_download=True)
249
+
250
+
251
+ optimizer = AdamW(model.parameters(), lr=2e-5, eps=1e-8)
252
+
253
+ if cfg.train:
254
+ train_dataset = CSV2Dataset(cfg,cfg.train_data,'train')
255
+ valid_dataset = CSV2Dataset(cfg,cfg.val_data,'valid')
256
+ train_dataloader = DataLoader(train_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(train_dataset)))
257
+ valid_dataloader = DataLoader(valid_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(valid_dataset)))
258
+ if cfg.evaluate:
259
+ test_dataset = CSV2Dataset(cfg,cfg.test_data,'valid')
260
+ test_dataloader = DataLoader(test_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(test_dataset)))
261
+ scheduler = get_linear_schedule_with_warmup(optimizer,num_warmup_steps=0,
262
+ num_training_steps=len(train_dataloader)*cfg.epochs)
263
+ tokenizer = valid_dataset.get_tokenizer()
264
+
265
+ elif cfg.test:
266
+ test_dataset = CSV2Dataset(cfg,cfg.test_data,'test')
267
+ test_dataloader = DataLoader(test_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(test_dataset),is_test=True))
268
+ tokenizer = test_dataset.get_tokenizer()
269
+
270
+ if cfg.evaluate and not cfg.train:
271
+ valid_dataset = CSV2Dataset(cfg,cfg.val_data,'valid')
272
+ valid_dataloader = DataLoader(valid_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(valid_dataset)))
273
+ tokenizer = valid_dataset.get_tokenizer()
274
+
275
+
276
+
277
+
278
+ model.resize_token_embeddings(len(tokenizer))
279
+ best_prec1 = 0
280
+
281
+ if cfg.evaluate or cfg.test or cfg.resume:
282
+ torch.cuda.empty_cache()
283
+ model = model.to(device)
284
+ def resume():
285
+ if os.path.isfile(cfg.resume_model):
286
+ print("=> loading checkpoint '{}'".format(cfg.resume_model))
287
+ checkpoint = torch.load(cfg.resume_model)
288
+ cfg.start_epoch = checkpoint['epoch']+1
289
+ global best_prec1
290
+ if 'TL' in cfg.best_filename:
291
+ best_prec1=0
292
+ cfg.epochs = cfg.start_epoch + cfg.epochs
293
+ else:
294
+ best_prec1 = checkpoint['best_prec1']
295
+ model.load_state_dict(checkpoint['state_dict'])
296
+ optimizer.load_state_dict(checkpoint['optimizer'])
297
+ print("=> loaded checkpoint '{}' (epoch {})"
298
+ .format(cfg.resume_model, checkpoint['epoch']))
299
+ else:
300
+ print("=> no checkpoint found at '{}'".format(cfg.resume_model))
301
+ resume()
302
+
303
+ if cfg.train:
304
+ model = nn.DataParallel(model, device_ids = list(range(torch.cuda.device_count()))).to(device)
305
+ for epoch in range(cfg.start_epoch, cfg.epochs):
306
+ # train for one epoch
307
+ train(train_dataloader, model, optimizer, scheduler, epoch, cfg.epochs)
308
+
309
+ # evaluate on validation set
310
+ prec1 = validate(valid_dataloader, model, tokenizer)
311
+
312
+ # remember best prec@1 and save checkpoint
313
+ is_best = prec1 > best_prec1
314
+ best_prec1 = max(prec1, best_prec1)
315
+ best_model = model
316
+ print(f"Best F1 :{best_prec1}")
317
+
318
+ save_checkpoint({
319
+ 'epoch': epoch,
320
+ 'state_dict': best_model.module.state_dict(),
321
+ 'best_prec1': best_prec1,
322
+ 'optimizer' : optimizer.state_dict(),
323
+ }, is_best,filename=cfg.checkpoint_filename,best_filename=cfg.best_filename)
324
+
325
+
326
+
327
+ if cfg.evaluate:
328
+ if cfg.train:
329
+ print(f'***On Test Set-{cfg.label_col}***')
330
+ validate(test_dataloader,model,tokenizer)
331
+ else:
332
+ model = nn.DataParallel(model, device_ids = list(range(torch.cuda.device_count()))).to(device)
333
+ validate(valid_dataloader, model, tokenizer)
334
+ # exit()
335
+
336
+ if cfg.test:
337
+ if cfg.train:
338
+ model = best_model
339
+ if cfg.evaluate:
340
+ test_dataset = CSV2Dataset(cfg,cfg.test_data,'test')
341
+ test_dataloader = DataLoader(test_dataset,batch_sampler=batch_sampling(cfg.batch_size,len(test_dataset),is_test=True))
342
+
343
+ tokenizer = test_dataset.get_tokenizer()
344
+ sents, preds = test(test_dataloader,model,tokenizer)
345
+
346
+
347
+ df = pd.read_csv(cfg.test_data)
348
+ if len(df) != len(preds):
349
+ preds += [''] * (len(df)-len(preds))
350
+ df['decoded_text'] = sents
351
+ df[cfg.test_res_col] = preds
352
+ df.to_csv(cfg.test_res,encoding='utf-8',index=False)
353
+
finetune/multi_label.py ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import warnings
2
+ warnings.simplefilter('ignore')
3
+ import numpy as np
4
+ import pandas as pd
5
+ from tqdm import tqdm
6
+ from sklearn import metrics
7
+ import transformers
8
+ import torch
9
+ from torch import nn
10
+ from torch.utils.data import Dataset, DataLoader, RandomSampler, SequentialSampler
11
+ from transformers import DistilBertTokenizer, DistilBertModel,AutoModel,AutoTokenizer,AutoConfig,AutoModelForSequenceClassification
12
+ import logging
13
+ logging.basicConfig(level=logging.ERROR)
14
+ import os
15
+ from itertools import permutations
16
+
17
+ from torch import cuda
18
+ device = 'cuda' if cuda.is_available() else 'cpu'
19
+ print(device)
20
+
21
+ models = ['vinai/bertweet-base',
22
+ './hate_bert',
23
+ 'Twitter/TwHIN-BERT-base',
24
+ 'cardiffnlp/twitter-roberta-base',
25
+ 'Xuhui/ToxDect-roberta-large',
26
+ 'bert-base-cased',
27
+ 'roberta-base']
28
+ model_names = [
29
+ 'BERTweet',
30
+ 'HateBERT',
31
+ 'TwHIN-BERT',
32
+ 'Twitter-RoBERTa',
33
+ 'ToxDect-RoBERTa',
34
+ 'BERT',
35
+ 'RoBERTa'
36
+ ]
37
+ countries = ['United States','Australia','United Kingdom','South Africa','Singapore']
38
+ codes = ['US', 'AU', 'GB', 'ZA', 'SG']
39
+ _hate_cols = [f'{country.replace(" ","_")}_Hate' for country in countries]
40
+
41
+ def hamming_score(y_true, y_pred, normalize=True, sample_weight=None):
42
+ acc_list = []
43
+ for i in range(y_true.shape[0]):
44
+ set_true = set( np.where(y_true[i])[0] )
45
+ set_pred = set( np.where(y_pred[i])[0] )
46
+ tmp_a = None
47
+ if len(set_true) == 0 and len(set_pred) == 0:
48
+ tmp_a = 1
49
+ else:
50
+ tmp_a = len(set_true.intersection(set_pred))/\
51
+ float( len(set_true.union(set_pred)) )
52
+ acc_list.append(tmp_a)
53
+ return np.mean(acc_list)
54
+
55
+ class MultiLabelDataset(Dataset):
56
+
57
+ def __init__(self, dataframe, tokenizer, max_len):
58
+ self.tokenizer = tokenizer
59
+ self.data = dataframe
60
+ self.text = dataframe.text
61
+ self.targets = self.data.labels
62
+ self.max_len = max_len
63
+
64
+ def __len__(self):
65
+ return len(self.text)
66
+
67
+ def __getitem__(self, index):
68
+ text = str(self.text[index])
69
+
70
+ inputs = self.tokenizer.encode_plus(
71
+ text,
72
+ None,
73
+ truncation=True,
74
+ add_special_tokens=True,
75
+ max_length=self.max_len,
76
+ pad_to_max_length=True,
77
+ return_token_type_ids=True
78
+ )
79
+ ids = inputs['input_ids']
80
+ mask = inputs['attention_mask']
81
+ token_type_ids = inputs["token_type_ids"]
82
+
83
+
84
+ return {
85
+ 'ids': torch.tensor(ids, dtype=torch.long),
86
+ 'mask': torch.tensor(mask, dtype=torch.long),
87
+ 'token_type_ids': torch.tensor(token_type_ids, dtype=torch.long),
88
+ 'targets': torch.tensor(self.targets[index], dtype=torch.float)
89
+ }
90
+
91
+ class Classifier(torch.nn.Module):
92
+ def __init__(self,model_name,tokenizer):
93
+ super(Classifier, self).__init__()
94
+ self.l1 = AutoModel.from_pretrained(model_name)
95
+ self.l1.resize_token_embeddings(len(tokenizer))
96
+ config = AutoConfig.from_pretrained(model_name)
97
+ self.pre_classifier = torch.nn.Linear(config.hidden_size, config.hidden_size)
98
+ self.dropout = torch.nn.Dropout(0.1)
99
+ self.classifier = torch.nn.Linear(config.hidden_size, 5)
100
+
101
+ def forward(self, input_ids, attention_mask, token_type_ids):
102
+ output_1 = self.l1(input_ids=input_ids, attention_mask=attention_mask)
103
+ hidden_state = output_1[0]
104
+ pooler = hidden_state[:, 0]
105
+ pooler = self.pre_classifier(pooler)
106
+ pooler = torch.nn.Tanh()(pooler)
107
+ pooler = self.dropout(pooler)
108
+ output = self.classifier(pooler)
109
+ return output
110
+
111
+
112
+ def loss_fn(outputs, targets):
113
+ return torch.nn.BCEWithLogitsLoss()(outputs, targets)
114
+
115
+ def train(epoch,model,training_loader):
116
+ model.train()
117
+ loop = tqdm(enumerate(training_loader, 0),total=len(training_loader))
118
+ loop.set_description(f"Epoch {epoch}")
119
+ for _,data in loop:
120
+ ids = data['ids'].to(device, dtype = torch.long)
121
+ mask = data['mask'].to(device, dtype = torch.long)
122
+ token_type_ids = data['token_type_ids'].to(device, dtype = torch.long)
123
+ targets = data['targets'].to(device, dtype = torch.float)
124
+
125
+ outputs = model(input_ids=ids, attention_mask=mask, labels=targets)
126
+
127
+ optimizer.zero_grad()
128
+ loss = outputs.loss
129
+ loop.set_postfix(loss=loss.mean().item())
130
+
131
+ loss.mean().backward()
132
+ optimizer.step()
133
+
134
+ def validation(testing_loader,model):
135
+ model.eval()
136
+ fin_targets=[]
137
+ fin_outputs=[]
138
+ with torch.no_grad():
139
+ for _, data in tqdm(enumerate(testing_loader, 0),total=len(testing_loader)):
140
+ ids = data['ids'].to(device, dtype = torch.long)
141
+ mask = data['mask'].to(device, dtype = torch.long)
142
+ token_type_ids = data['token_type_ids'].to(device, dtype = torch.long)
143
+ targets = data['targets'].to(device, dtype = torch.float)
144
+ outputs = model(input_ids=ids, attention_mask=mask, ).logits
145
+ fin_targets.extend(targets.cpu().detach().numpy().tolist())
146
+ fin_outputs.extend(torch.sigmoid(outputs).cpu().detach().numpy().tolist())
147
+ return fin_outputs, fin_targets
148
+
149
+
150
+ MAX_LEN = 128
151
+ TRAIN_BATCH_SIZE = 32
152
+ VALID_BATCH_SIZE = 32
153
+ EPOCHS = 6
154
+ LEARNING_RATE = 2e-5
155
+ special_tokens = ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"]
156
+
157
+ col_idx_permutation = list(permutations(range(5)))
158
+
159
+ for model_path,model_name in zip(models[1:],model_names[1:]):
160
+
161
+
162
+ tokenizer = AutoTokenizer.from_pretrained(model_path, truncation=True)
163
+ tokenizer.add_tokens(special_tokens)
164
+
165
+ res_df = pd.DataFrame()
166
+ train_file = './data_splits/CREHate_train.csv'
167
+ valid_file = './data_splits/CREHate_valid.csv'
168
+ test_file = './data_splits/CREHate_test.csv'
169
+
170
+ train_data = pd.read_csv(train_file)
171
+ valid_data = pd.read_csv(valid_file)
172
+ test_data = pd.read_csv(test_file)
173
+
174
+ for idx,idx_permute in enumerate(col_idx_permutation):
175
+ hate_cols = [_hate_cols[i] for i in idx_permute]
176
+
177
+ train_df = pd.DataFrame()
178
+ train_df['text'] = train_data['Text']
179
+ train_df['labels'] = train_data[hate_cols].values.tolist()
180
+
181
+ valid_df = pd.DataFrame()
182
+ valid_df['text'] = valid_data['Text']
183
+ valid_df['labels'] = valid_data[hate_cols].values.tolist()
184
+
185
+ test_df = pd.DataFrame()
186
+ test_df['text'] = test_data['Text']
187
+ test_df['labels'] = test_data[hate_cols].values.tolist()
188
+
189
+
190
+ training_set = MultiLabelDataset(train_df, tokenizer, MAX_LEN)
191
+ valid_set = MultiLabelDataset(valid_df, tokenizer, MAX_LEN)
192
+ testing_set = MultiLabelDataset(test_df, tokenizer, MAX_LEN)
193
+
194
+ train_params = {'batch_size': TRAIN_BATCH_SIZE,
195
+ 'shuffle': True,
196
+ 'num_workers': torch.cuda.device_count()
197
+ }
198
+ valid_params = {'batch_size': VALID_BATCH_SIZE,
199
+ 'shuffle': True,
200
+ 'num_workers': torch.cuda.device_count()
201
+ }
202
+
203
+ test_params = {'batch_size': VALID_BATCH_SIZE,
204
+ 'shuffle': False,
205
+ 'num_workers': torch.cuda.device_count()
206
+ }
207
+
208
+ training_loader = DataLoader(training_set, **train_params)
209
+ valid_loader = DataLoader(valid_set, **valid_params)
210
+ testing_loader = DataLoader(testing_set, **test_params)
211
+
212
+ model = AutoModelForSequenceClassification.from_pretrained(model_path,
213
+ problem_type="multi_label_classification",
214
+ num_labels=5, ignore_mismatched_sizes=True)
215
+ model.resize_token_embeddings(len(tokenizer))
216
+ print(list(range(torch.cuda.device_count())))
217
+ model = nn.DataParallel(model, device_ids = list(range(torch.cuda.device_count()))).to(device)
218
+
219
+ optimizer = torch.optim.AdamW(params = model.parameters(), lr=LEARNING_RATE, eps=1e-8)
220
+ min_hamming_loss = 1
221
+ best_model = None
222
+
223
+ for epoch in range(EPOCHS):
224
+ train(epoch,model,training_loader)
225
+ outputs, targets = validation(valid_loader,model)
226
+
227
+ final_outputs = np.array(outputs) >=0.5
228
+
229
+ val_hamming_loss = metrics.hamming_loss(targets, final_outputs)
230
+ val_hamming_score = hamming_score(np.array(targets), np.array(final_outputs))
231
+ print(f"Hamming Score = {val_hamming_score}")
232
+ print(f"Hamming Loss = {val_hamming_loss}")
233
+
234
+ if val_hamming_loss < min_hamming_loss:
235
+ min_hamming_loss = val_hamming_loss
236
+ best_model = model
237
+
238
+
239
+ if best_model is not None:
240
+
241
+ outputs, targets = validation(testing_loader,best_model)
242
+
243
+ final_outputs = np.array(outputs) >=0.5
244
+
245
+ tst_hamming_loss = metrics.hamming_loss(targets, final_outputs)
246
+ tst_hamming_score = hamming_score(np.array(targets), np.array(final_outputs))
247
+ final_outputs = 1*final_outputs
248
+ cols = [f'{model_name}-ML-{country}' for country in [codes[i] for i in idx_permute]]
249
+ outputs_df = pd.DataFrame(final_outputs,columns=cols)
250
+ total = pd.concat([test_data[hate_cols],outputs_df],axis=1)
251
+ total.to_csv(f'./res/{model_name}-ML-ALL-P-{idx}-res.csv',index=False)
252
+ test_data = pd.concat([test_data,outputs_df],axis=1)
253
+ test_data.to_csv(test_file,index=False)
254
+ print(test_data)
255
+ print(total)
256
+ print('\tAcc\tF1\tH-F1\tN-F1')
257
+
258
+ row = []
259
+ for hate_col,code in zip(hate_cols,[codes[i] for i in idx_permute]):
260
+ acc = metrics.accuracy_score(test_data[hate_col],outputs_df[f'{model_name}-ML-{code}'])
261
+ f1 = metrics.f1_score(test_data[hate_col], outputs_df[f'{model_name}-ML-{code}'],average='macro')
262
+ n,h = metrics.f1_score(test_data[hate_col], outputs_df[f'{model_name}-ML-{code}'],average=None)
263
+ r = metrics.recall_score(test_data[hate_col], outputs_df[f'{model_name}-ML-{code}'])
264
+ print(f'{code}:\t{acc:.4f}\t{f1:.4f}\t{n:.4f}\t{h:.4f}\t{r:.4f}')
265
+ row += [acc,f1,n,h,r]
266
+ res_cols = []
267
+ for code in [codes[i] for i in idx_permute]:
268
+ res_cols += [f'{code}-{score}' for score in ['acc','f1','h','n','r']]
269
+ res_df_row = pd.DataFrame([row],index=[idx],columns=res_cols)
270
+ res_df = pd.concat([res_df,res_df_row])
271
+ if 'avg' in res_df.index:
272
+ res_df.drop('avg',inplace=True)
273
+ res_df.loc['avg'] = res_df.mean(axis=0)
274
+ print(res_df)
275
+ res_df.to_csv(f'./res/{model_name}-ML-ALL-P-res-scores.csv')
276
+
finetune/multi_task.py ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import warnings
2
+ warnings.simplefilter('ignore')
3
+ import numpy as np
4
+ import pandas as pd
5
+ from tqdm import tqdm
6
+ from sklearn import metrics
7
+ import transformers
8
+ import torch
9
+ from torch import nn
10
+ from torch.utils.data import Dataset, DataLoader, RandomSampler, SequentialSampler
11
+ from transformers import DistilBertTokenizer, DistilBertModel,AutoModel,AutoTokenizer,AutoConfig,AutoModelForSequenceClassification
12
+ import logging
13
+ logging.basicConfig(level=logging.ERROR)
14
+ import os
15
+ from itertools import permutations
16
+
17
+
18
+ from torch import cuda
19
+ device = 'cuda' if cuda.is_available() else 'cpu'
20
+ print(device)
21
+
22
+ models = ['vinai/bertweet-base',
23
+ './hate_bert',
24
+ 'Twitter/TwHIN-BERT-base',
25
+ 'cardiffnlp/twitter-roberta-base',
26
+ 'Xuhui/ToxDect-roberta-large',
27
+ 'bert-base-cased',
28
+ 'roberta-base']
29
+ model_names = [
30
+ 'BERTweet',
31
+ 'HateBERT',
32
+ 'TwHIN-BERT',
33
+ 'Twitter-RoBERTa',
34
+ 'ToxDect-RoBERTa',
35
+ 'BERT',
36
+ 'RoBERTa'
37
+ ]
38
+ countries = ['United States','Australia','United Kingdom','South Africa','Singapore']
39
+ codes = ['US', 'AU', 'GB', 'ZA', 'SG']
40
+ _hate_cols = [f'{country.replace(" ","_")}_Hate' for country in countries]
41
+
42
+ def hamming_score(y_true, y_pred, normalize=True, sample_weight=None):
43
+ acc_list = []
44
+ for i in range(y_true.shape[0]):
45
+ set_true = set( np.where(y_true[i])[0] )
46
+ set_pred = set( np.where(y_pred[i])[0] )
47
+ tmp_a = None
48
+ if len(set_true) == 0 and len(set_pred) == 0:
49
+ tmp_a = 1
50
+ else:
51
+ tmp_a = len(set_true.intersection(set_pred))/\
52
+ float( len(set_true.union(set_pred)) )
53
+ acc_list.append(tmp_a)
54
+ return np.mean(acc_list)
55
+
56
+ class MultiTaskDataset(Dataset):
57
+
58
+ def __init__(self, dataframe, tokenizer, max_len):
59
+ self.tokenizer = tokenizer
60
+ self.data = dataframe
61
+ self.text = dataframe.text
62
+ self.targets = self.data.labels
63
+ self.max_len = max_len
64
+
65
+ def __len__(self):
66
+ return len(self.text)
67
+
68
+ def __getitem__(self, index):
69
+ text = str(self.text[index])
70
+
71
+ inputs = self.tokenizer.encode_plus(
72
+ text,
73
+ None,
74
+ truncation=True,
75
+ add_special_tokens=True,
76
+ max_length=self.max_len,
77
+ pad_to_max_length=True,
78
+ return_token_type_ids=True
79
+ )
80
+ ids = inputs['input_ids']
81
+ mask = inputs['attention_mask']
82
+ token_type_ids = inputs["token_type_ids"]
83
+
84
+
85
+ return {
86
+ 'ids': torch.tensor(ids, dtype=torch.long),
87
+ 'mask': torch.tensor(mask, dtype=torch.long),
88
+ 'token_type_ids': torch.tensor(token_type_ids, dtype=torch.long),
89
+ 'targets': torch.tensor(self.targets[index], dtype=torch.long)
90
+ }
91
+
92
+ class Classifier(torch.nn.Module):
93
+ def __init__(self,model_name,tokenizer):
94
+ super(Classifier, self).__init__()
95
+ self.l1 = AutoModel.from_pretrained(model_name)
96
+ self.l1.resize_token_embeddings(len(tokenizer))
97
+ config = AutoConfig.from_pretrained(model_name)
98
+ self.pre_classifier = torch.nn.Linear(config.hidden_size, config.hidden_size)
99
+ self.dropout = torch.nn.Dropout(0.1)
100
+
101
+ self.classifier_1 = torch.nn.Linear(config.hidden_size, 2)
102
+ self.classifier_2 = torch.nn.Linear(config.hidden_size, 2)
103
+ self.classifier_3 = torch.nn.Linear(config.hidden_size, 2)
104
+ self.classifier_4 = torch.nn.Linear(config.hidden_size, 2)
105
+ self.classifier_5 = torch.nn.Linear(config.hidden_size, 2)
106
+
107
+ def forward(self, input_ids, attention_mask, token_type_ids):
108
+ outputs = self.l1(input_ids=input_ids, attention_mask=attention_mask)
109
+ pooler = outputs[1]
110
+ pooler = self.pre_classifier(pooler)
111
+ pooler = self.dropout(pooler)
112
+ output_1 = self.classifier_1(pooler)
113
+ output_2 = self.classifier_2(pooler)
114
+ output_3 = self.classifier_3(pooler)
115
+ output_4 = self.classifier_4(pooler)
116
+ output_5 = self.classifier_5(pooler)
117
+ return output_1,output_2,output_3,output_4,output_5
118
+
119
+
120
+ def loss_fn(outputs, targets):
121
+ return torch.nn.CrossEntropyLoss()(outputs, targets)
122
+
123
+ def train(epoch,model,training_loader):
124
+ model.train()
125
+ loop = tqdm(enumerate(training_loader, 0),total=len(training_loader))
126
+ loop.set_description(f"Epoch {epoch}")
127
+ for _,data in loop:
128
+ ids = data['ids'].to(device, dtype = torch.long)
129
+ mask = data['mask'].to(device, dtype = torch.long)
130
+ token_type_ids = data['token_type_ids'].to(device, dtype = torch.long)
131
+ targets = data['targets'].to(device, dtype = torch.long)
132
+
133
+ output_1,output_2,output_3,output_4,output_5 = model(ids, mask, token_type_ids)
134
+ optimizer.zero_grad()
135
+ loss_1 = loss_fn(output_1, targets[:,0])
136
+ loss_2 = loss_fn(output_2, targets[:,1])
137
+ loss_3 = loss_fn(output_3, targets[:,2])
138
+ loss_4 = loss_fn(output_4, targets[:,3])
139
+ loss_5 = loss_fn(output_5, targets[:,4])
140
+ loss = (loss_1 + loss_2 + loss_3 + loss_4 + loss_5)
141
+
142
+ loop.set_postfix(loss=loss.item())
143
+
144
+ loss.backward()
145
+ optimizer.step()
146
+
147
+ def validation(testing_loader,model):
148
+ model.eval()
149
+ fin_targets=[]
150
+ fin_outputs=[]
151
+ with torch.no_grad():
152
+ for _, data in tqdm(enumerate(testing_loader, 0),total=len(testing_loader)):
153
+ ids = data['ids'].to(device, dtype = torch.long)
154
+ mask = data['mask'].to(device, dtype = torch.long)
155
+ token_type_ids = data['token_type_ids'].to(device, dtype = torch.long)
156
+ targets = data['targets'].to(device, dtype = torch.float)
157
+
158
+ output_1,output_2,output_3,output_4,output_5 = model(ids, mask, token_type_ids)
159
+ prob_1 = nn.Softmax(dim=1)(output_1)
160
+ prob_2 = nn.Softmax(dim=1)(output_2)
161
+ prob_3 = nn.Softmax(dim=1)(output_3)
162
+ prob_4 = nn.Softmax(dim=1)(output_4)
163
+ prob_5 = nn.Softmax(dim=1)(output_5)
164
+
165
+ fin_targets.extend(targets.cpu().detach().numpy().tolist())
166
+ fin_outputs+=[[p1.cpu().detach().numpy().tolist(),p2.cpu().detach().numpy().tolist(),
167
+ p3.cpu().detach().numpy().tolist(),p4.cpu().detach().numpy().tolist(),
168
+ p5.cpu().detach().numpy().tolist()] for p1,p2,p3,p4,p5 in zip(prob_1, prob_2, prob_3, prob_4, prob_5)]
169
+
170
+ return fin_outputs, fin_targets
171
+
172
+
173
+ MAX_LEN = 128
174
+ TRAIN_BATCH_SIZE = 32
175
+ VALID_BATCH_SIZE = 32
176
+ EPOCHS = 6
177
+ LEARNING_RATE = 2e-5
178
+ special_tokens = ["[US]","[AU]","[GB]","[ZA]","[SG]","@USER","URL"]
179
+
180
+ col_idx_permutation = list(permutations(range(5)))
181
+
182
+ for model_path,model_name in zip(models,model_names):
183
+
184
+ tokenizer = AutoTokenizer.from_pretrained(model_path, truncation=True)
185
+ tokenizer.add_tokens(special_tokens)
186
+
187
+ res_row_list = []
188
+ res_df = pd.DataFrame()
189
+
190
+ train_file = './data_splits/CREHate_train.csv'
191
+ valid_file = './data_splits/CREHate_valid.csv'
192
+ test_file = './data_splits/CREHate_test.csv'
193
+
194
+ train_data = pd.read_csv(train_file)
195
+ valid_data = pd.read_csv(valid_file)
196
+ test_data = pd.read_csv(test_file)
197
+
198
+ for idx,idx_permute in enumerate(col_idx_permutation):
199
+ hate_cols = [_hate_cols[i] for i in idx_permute]
200
+
201
+ train_df = pd.DataFrame()
202
+ train_df['text'] = train_data['Text']
203
+ train_df['labels'] = train_data[hate_cols].values.tolist()
204
+
205
+ valid_df = pd.DataFrame()
206
+ valid_df['text'] = valid_data['Text']
207
+ valid_df['labels'] = valid_data[hate_cols].values.tolist()
208
+
209
+ test_df = pd.DataFrame()
210
+ test_df['text'] = test_data['Text']
211
+ test_df['labels'] = test_data[hate_cols].values.tolist()
212
+
213
+
214
+ training_set = MultiTaskDataset(train_df, tokenizer, MAX_LEN)
215
+ valid_set = MultiTaskDataset(valid_df, tokenizer, MAX_LEN)
216
+ testing_set = MultiTaskDataset(test_df, tokenizer, MAX_LEN)
217
+
218
+ train_params = {'batch_size': TRAIN_BATCH_SIZE,
219
+ 'shuffle': True,
220
+ 'num_workers': torch.cuda.device_count()
221
+ }
222
+ valid_params = {'batch_size': VALID_BATCH_SIZE,
223
+ 'shuffle': True,
224
+ 'num_workers': torch.cuda.device_count()
225
+ }
226
+
227
+ test_params = {'batch_size': VALID_BATCH_SIZE,
228
+ 'shuffle': False,
229
+ 'num_workers': torch.cuda.device_count()
230
+ }
231
+
232
+ training_loader = DataLoader(training_set, **train_params)
233
+ valid_loader = DataLoader(valid_set, **valid_params)
234
+ testing_loader = DataLoader(testing_set, **test_params)
235
+
236
+ model = Classifier(model_path,tokenizer)
237
+
238
+
239
+
240
+ model = nn.DataParallel(model, device_ids =list(range(torch.cuda.device_count()))).to(device)
241
+
242
+ optimizer = torch.optim.AdamW(params = model.parameters(), lr=LEARNING_RATE, eps=1e-8)
243
+ min_hamming_loss = 1
244
+ best_model = None
245
+
246
+ for epoch in range(EPOCHS):
247
+ train(epoch,model,training_loader)
248
+ outputs, targets = validation(valid_loader,model)
249
+
250
+ final_outputs = np.array([[0 if output[0]>output[1] else 1 for output in row] for row in outputs])
251
+ val_hamming_loss = metrics.hamming_loss(targets, final_outputs)
252
+ val_hamming_score = hamming_score(np.array(targets), np.array(final_outputs))
253
+ print(f"Hamming Score = {val_hamming_score}")
254
+ print(f"Hamming Loss = {val_hamming_loss}")
255
+
256
+ if val_hamming_loss < min_hamming_loss:
257
+ min_hamming_loss = val_hamming_loss
258
+ best_model = model
259
+
260
+
261
+ if best_model is not None:
262
+
263
+ outputs, targets = validation(testing_loader,best_model)
264
+
265
+ final_outputs = np.array([[0 if output[0]>output[1] else 1 for output in row] for row in outputs])
266
+
267
+ tst_hamming_loss = metrics.hamming_loss(targets, final_outputs)
268
+ tst_hamming_score = hamming_score(np.array(targets), np.array(final_outputs))
269
+ cols = [f'{model_name}-MT-{country}' for country in [codes[i] for i in idx_permute]]
270
+ outputs_df = pd.DataFrame(final_outputs,columns=cols)
271
+ total = pd.concat([test_data[hate_cols],outputs_df],axis=1)
272
+ total.to_csv(f'./res/{model_name}-MT-ALL-P-{idx}-res.csv',index=False)
273
+ test_data = pd.concat([test_data,outputs_df],axis=1)
274
+ print(test_data)
275
+ print(total)
276
+ print('\tAcc\tF1\tH-F1\tN-F1')
277
+
278
+ row = []
279
+ for hate_col,code in zip(hate_cols,[codes[i] for i in idx_permute]):
280
+ acc = metrics.accuracy_score(test_data[hate_col],outputs_df[f'{model_name}-MT-{code}'])
281
+ f1 = metrics.f1_score(test_data[hate_col], outputs_df[f'{model_name}-MT-{code}'],average='macro')
282
+ n,h = metrics.f1_score(test_data[hate_col], outputs_df[f'{model_name}-MT-{code}'],average=None)
283
+ r = metrics.recall_score(test_data[hate_col], outputs_df[f'{model_name}-MT-{code}'])
284
+ print(f'{code}:\t{acc:.4f}\t{f1:.4f}\t{n:.4f}\t{h:.4f}\t{r:.4f}')
285
+ row += [acc,f1,n,h,r]
286
+ res_cols = []
287
+ for code in [codes[i] for i in idx_permute]:
288
+ res_cols += [f'{code}-{score}' for score in ['acc','f1','h','n','r']]
289
+ res_df_row = pd.DataFrame([row],index=[idx],columns=res_cols)
290
+ res_df = pd.concat([res_df,res_df_row])
291
+ if 'avg' in res_df.index:
292
+ res_df.drop('avg',inplace=True)
293
+ res_df.loc['avg'] = res_df.mean(axis=0)
294
+ print(res_df)
295
+ res_df.to_csv(f'./res/{model_name}-MT-ALL-P-res-scores.csv')
llm_inference.py ADDED
@@ -0,0 +1,566 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import os
3
+ import re
4
+ import csv
5
+ import json
6
+ import time
7
+ import openai
8
+ import argparse
9
+ import numpy as np
10
+ import pandas as pd
11
+ from pathlib import Path
12
+ from tqdm.auto import tqdm
13
+ from easydict import EasyDict
14
+ from transformers import T5Tokenizer, T5ForConditionalGeneration, AutoModelForCausalLM, AutoTokenizer, LlamaTokenizer, pipeline
15
+ import torch
16
+
17
+
18
+
19
+
20
+ def raw2prediction(x, hn_or_nh):
21
+ if hn_or_nh == 'hn':
22
+ choices = ['Hate', 'Non-hate']
23
+ elif hn_or_nh == 'nh':
24
+ choices = ['Non-hate', 'Hate']
25
+ choice_alphabets = ['a', 'b']
26
+ choice2idx = {'a': 0, 'b': 1}
27
+
28
+ try:
29
+ raw = x.strip()
30
+ except:
31
+ print(x)
32
+
33
+ if (raw.startswith('a') and 'a\n' in raw) or 'A is the correct answer' in raw:
34
+ return choices[choice2idx['a']]
35
+
36
+ if raw.startswith('b') and 'b\n' in raw:
37
+ return choices[choice2idx['b']]
38
+
39
+ if 'post is not hate' in raw.lower() or "it's non-hate" in raw.lower() or 'is not hate' in raw.lower() or "it's not hate" in raw.lower() or "it's not a hate" in raw.lower() or "don't think this is hate" in raw.lower() or "is not a hate" in raw.lower() or "would not call it hate" in raw.lower() or "would not consider it as a hate" in raw.lower():
40
+ return 'Non-hate'
41
+
42
+ if raw.startswith('Hate.') or raw.startswith('Hate Speech') or raw.startswith('Hate\n') or 'it is hate' in raw.lower() or "that's a hate" in raw.lower() or "think it's hate" in raw.lower() or "this is a hate" in raw.lower():
43
+ return 'Hate'
44
+
45
+ if raw.startswith('Non-hate.') or raw.startswith('Non-hate\n'):
46
+ return 'Non-hate'
47
+
48
+ if raw.startswith('Comment:'):
49
+ raw = raw.replace('Comment:','')
50
+
51
+ if 'Classify this text as' in raw:
52
+ raw = re.sub('Classify this text as[\s\S]+','', raw)
53
+
54
+ if 'answer:' in raw:
55
+ raw = re.sub('[\s\S]+answer:\s','', raw)
56
+
57
+ if 'Answer:' in raw:
58
+ raw = re.sub('[\s\S]+Answer:\s','', raw)
59
+
60
+ if 'can be classified as ' in raw:
61
+ raw = re.sub('[\s\S]+can be classified as ','', raw)
62
+
63
+ if 'can be categorized as ' in raw:
64
+ raw = re.sub('[\s\S]+can be categorized as ','', raw)
65
+
66
+ if 'is classified as ' in raw:
67
+ raw = re.sub('[\s\S]+is classified as ','', raw)
68
+
69
+ raw = raw.replace('hateful','Hate')
70
+ raw = raw.replace('hate speech','Hate')
71
+ raw = raw.replace('Hate speech','Hate')
72
+ raw = raw.replace('###','')
73
+
74
+
75
+ if 'can be considered hateful' in raw:
76
+ return 'Hate'
77
+
78
+ if 'does not contain hate' in raw:
79
+ return 'Non-hate'
80
+
81
+ try:
82
+ raw = re.search('\*\*\s*(?P<raw>.*)\s*\*\*', raw).groupdict()['raw']
83
+ except:
84
+ pass
85
+
86
+ if 'answer is' in raw:
87
+ regex = 'answer is\s*(?P<answer>[^\.\n<]*)'
88
+ else:
89
+ regex = 'Answer\s*:\s*(?P<answer>[^\.\n<]*)'
90
+
91
+ try:
92
+ prediction = re.search(regex, raw).groupdict()['answer']
93
+ except:
94
+ prediction = raw
95
+
96
+ try:
97
+ if raw.strip()[0] == '(':
98
+ regex = '(Option|option|[\*\s]*)\s*(?P<answer>[^\.\n\*<]*)'
99
+ else:
100
+ regex = '(Option|option|[\*\s]*)\s*(?P<answer>[^\.\n\*(<]*)'
101
+ except:
102
+ if raw.strip() == '(':
103
+ regex = '(Option|option|[\*\s]*)\s*(?P<answer>[^\.\n\*<]*)'
104
+ else:
105
+ regex = '(Option|option|[\*\s]*)\s*(?P<answer>[^\.\n\*(<]*)'
106
+ try:
107
+ prediction = re.search(regex, prediction).groupdict()['answer']
108
+ except:
109
+ prediction = re.search('\s*(?P<answer>[^\.\n\*(<]*)', prediction).groupdict()['answer']
110
+
111
+ prediction = re.sub('[^\S ]', '', prediction.strip(" \n\t'\"()"))
112
+
113
+ if len(prediction) == 0:
114
+ prediction = raw
115
+ if len(prediction) == 0:
116
+ return ''
117
+ prediction_upper = prediction.lower()
118
+
119
+ if (prediction_upper[0] in choice_alphabets):
120
+ try:
121
+ choice = re.search('[:)\-]\s*(?P<choice>[^(]*)', prediction_upper).groupdict()['choice']
122
+ except:
123
+ if prediction_upper.count(choice_alphabets[0]) + prediction_upper.count(choice_alphabets[1]) == 1:
124
+ prediction = prediction_upper[0]
125
+
126
+ if prediction in choice_alphabets:
127
+ prediction = choices[choice2idx[prediction]]
128
+
129
+ if prediction.startswith('non'):
130
+ prediction = 'Non-hate'
131
+ if prediction in choice_alphabets:
132
+ prediction = choices[choice2idx[prediction]]
133
+ if prediction in ['hate','H','h','H for Hate','a" Hate','Yes, a: Hate','This post would be considered as a Hate',
134
+ '[a] Hate','b, Hate','b Hate','h: Hate','B Hate','b Hate','Hate Speech','b Hate','a" Hate',
135
+ 'This text is hate','HATE',"I think it's hate","I think it's a hate post",'\\strong{Hate}',
136
+ 'I think this is a hate post','hate"?']:
137
+ prediction = 'Hate'
138
+ if prediction in ['Non-Hate Speech','The post provided does not contain Hate',
139
+ 'Non-hate','I: Non-hate','Not-hate','n','N','No, b: Non-hate',
140
+ 'Not enough context to determine if it is Hate or not, "b: Non-hate','Non-hate a',
141
+ 'Non-hate Speech','Non-Hate','It is not hate',"I think it's non-hate","I think it's a non-hate post",
142
+ "It's not hate",'Non','This is non-hate','Non-'
143
+ ]:
144
+ prediction = 'Non-hate'
145
+ if prediction == '1':
146
+ prediction = choices[0]
147
+
148
+ return prediction
149
+
150
+ if choices[choice2idx[prediction_upper[0]]].lower() == choice.lower():
151
+ prediction = prediction_upper[0]
152
+ else:
153
+ prediction = prediction_upper[0]
154
+ if prediction.startswith('non'):
155
+ prediction = 'Non-hate'
156
+ if prediction in choice_alphabets:
157
+ prediction = choices[choice2idx[prediction]]
158
+ if prediction in ['hate','H','h','H for Hate','a" Hate','Yes, a: Hate','This post would be considered as a Hate',
159
+ '[a] Hate','b, Hate','b Hate','h: Hate','B Hate','b Hate','Hate Speech','b Hate','a" Hate',
160
+ 'This text is hate','HATE',"I think it's hate","I think it's a hate post",'\\strong{Hate}',
161
+ 'I think this is a hate post','hate"?']:
162
+ prediction = 'Hate'
163
+ if prediction in ['Non-Hate Speech','The post provided does not contain Hate',
164
+ 'Non-hate','I: Non-hate','Not-hate','n','N','No, b: Non-hate',
165
+ 'Not enough context to determine if it is Hate or not, "b: Non-hate','Non-hate a',
166
+ 'Non-hate Speech','Non-Hate','It is not hate',"I think it's non-hate","I think it's a non-hate post",
167
+ "It's not hate",'Non','This is non-hate','Non-'
168
+ ]:
169
+ prediction = 'Non-hate'
170
+ if prediction == '1':
171
+ prediction = choices[0]
172
+
173
+
174
+
175
+ return prediction
176
+
177
+ def prediction_2_label(prediction):
178
+ prediction_lower = prediction.lower()
179
+ if prediction_lower in ['a', ab2label['a'].lower(), ab2label['a'].lower().replace('-', ''), f"{ab2label['a'].lower()} (a)", f"a ({ab2label['a'].lower()})", f"a: {ab2label['a'].lower()}", f"a. {ab2label['a'].lower()}"]:
180
+ return ab2label['a']
181
+ if prediction_lower in ['b', ab2label['b'].lower(), ab2label['b'].lower().replace('-', ''), f"{ab2label['b'].lower()} (b)", f"b ({ab2label['b'].lower()})", f"b: {ab2label['b'].lower()}", f"b. {ab2label['b'].lower()}"]:
182
+ return ab2label['b']
183
+
184
+ if prediction not in ['Hate', 'Non-hate']:
185
+ print(prediction)
186
+
187
+ return prediction
188
+
189
+ def make_prompt(instance,ab2label,persona=False,country=None,simple=False,definition=False,prompt_num=None):
190
+ if prompt_num == None:
191
+ prompt_num = 0
192
+
193
+ prompts = [
194
+ 'Answer if this post is hate or not with a single alphabet letter among given answer choices a and b.',
195
+ "Given a POST from online, answer if it is 'Hate Speech' or 'Non-Hate Speech'. Answer with only one single alphabet between 'a' and 'b', with no other description.",
196
+ "Would you consider this post as a hate speech? Give an answer in a single alphabet only.",
197
+ "Do you think this is a hate speech? Answer with only one single alphabet between 'a' and 'b', with no other description.",
198
+ "Consider yourself as a very typical person. Would you consider this post as a hate speech? Give an answer in a single alphabet only."
199
+ ]
200
+
201
+ prompts_w_persona = [
202
+ f"Answer if this post is hate or not in {country} with a single alphabet letter among given answer choices a and b.",
203
+ f"Given a POST from online, answer if it is 'Hate Speech' or 'Non-Hate Speech' in {country}. Answer with only one single alphabet between 'a' and 'b', with no other description.",
204
+ f"As a person raised up in {country}, would you consider this post as a hate speech? Give an answer in a single alphabet only.",
205
+ f"You are from {country}. Do you think this is a hate speech? Answer with only one single alphabet between 'a' and 'b', with no other description.",
206
+ f"Consider yourself as a very typical person in {country}. Would you consider this post as a hate speech? Give an answer in a single alphabet only."
207
+ ]
208
+
209
+ p = ''
210
+
211
+ if simple:
212
+ p = f'Classify this text as {ab2label["a"]} or {ab2label["b"]}. {instance}. Answer:'
213
+ return p
214
+
215
+ if definition:
216
+ p = f"Definition of Hate Speech:\n\nHate speech refers to offensive discourse targeting a group or an individual based on inherent characteristics such as race, religion, sexual orientation, gender, or any other factors that may threaten social peace.\n\n"
217
+
218
+ if persona:
219
+ p += prompts_w_persona[prompt_num]
220
+ else:
221
+ p += prompts[prompt_num]
222
+
223
+ p+='\n\n'
224
+
225
+ p += f'POST: {instance}\n'
226
+ p += f'a: {ab2label["a"]}\n'
227
+ p += f'b: {ab2label["b"]}\n'
228
+ p += 'answer:'
229
+
230
+ return p
231
+
232
+
233
+ openai.organization = OPENAI_ORGANIZATION_KEY
234
+ openai.api_key = OPENAI_API_KEY
235
+
236
+
237
+ def check_gpt_input_list(history):
238
+ check = True
239
+ for i, u in enumerate(history):
240
+ if not isinstance(u, dict):
241
+ check = False
242
+ break
243
+
244
+ if not u.get("role") or not u.get("content"):
245
+ check = False
246
+ break
247
+
248
+ return check
249
+
250
+
251
+ def get_gpt_response(
252
+ text,
253
+ model_name,
254
+ temperature=1.0,
255
+ top_p=1.0,
256
+ max_tokens=128,
257
+ greedy=False,
258
+ num_sequence=1,
259
+ max_try=60,
260
+ dialogue_history=None
261
+ ):
262
+ # assert model_name in GPT_MODEL
263
+
264
+ if (model_name.startswith("gpt-3.5-turbo") and 'instruct' not in model_name) or model_name.startswith("gpt-4"):
265
+ if dialogue_history:
266
+ if not check_gpt_input_list(dialogue_history):
267
+ raise Exception("Input format is not compatible with chatgpt api! Please see https://platform.openai.com/docs/api-reference/chat")
268
+ messages = dialogue_history
269
+ else:
270
+ messages = []
271
+
272
+ messages.append({'role': 'user', 'content': text})
273
+
274
+ prompt = {
275
+ "model": model_name,
276
+ "messages": messages,
277
+ "temperature": 0. if greedy else temperature,
278
+ "top_p": top_p,
279
+ "max_tokens": max_tokens,
280
+ "n": num_sequence
281
+ }
282
+
283
+ else:
284
+ prompt = {
285
+ "model": model_name,
286
+ "prompt": text,
287
+ "temperature": 0. if greedy else temperature,
288
+ "top_p": top_p,
289
+ "max_tokens": max_tokens,
290
+ "n": num_sequence
291
+ }
292
+
293
+ n_try = 0
294
+ while True:
295
+ if n_try == max_try:
296
+ outputs = ["something wrong"]
297
+ break
298
+
299
+ try:
300
+ if (model_name.startswith("gpt-3.5-turbo") and 'instruct' not in model_name) or model_name.startswith("gpt-4"):
301
+ time.sleep(0.5)
302
+ res = openai.ChatCompletion.create(**prompt)
303
+ outputs = [o['message']['content'].strip("\n ") for o in res['choices']]
304
+ else:
305
+ res = openai.Completion.create(**prompt)
306
+ outputs = [o['text'].strip("\n ") for o in res['choices']]
307
+ break
308
+ except KeyboardInterrupt:
309
+ raise Exception("KeyboardInterrupted!")
310
+ except:
311
+ print("Exception: Sleep for 10 sec")
312
+ time.sleep(10)
313
+ n_try += 1
314
+ continue
315
+
316
+ if len(outputs) == 1:
317
+ outputs = outputs[0]
318
+ return outputs
319
+
320
+ sbic_data = pd.read_csv(PATH_TO_SBIC_DATA,index_col=False)
321
+ additional_data = pd.read_csv(PATH_TO_CP_DATA,index_col=False)
322
+
323
+
324
+ models_to_eval = [
325
+ 'gpt-4-1106-preview',
326
+ 'gpt-3.5-turbo-1106',
327
+ 'google/flan-t5-xxl',
328
+ 'facebook/opt-iml-30b'
329
+ 'microsoft/Orca-2-7b',
330
+ ]
331
+
332
+
333
+
334
+ output_dir = Path(PATH_TO_OUTPUT_DIRECTORY)
335
+
336
+ countries = ['Australia','United States','United Kingdom','South Africa','Singapore']
337
+
338
+ for model_name in models_to_eval:
339
+
340
+ if 'flan-t5' in model_name:
341
+ tokenizer = T5Tokenizer.from_pretrained(model_name)
342
+ model = T5ForConditionalGeneration.from_pretrained(model_name, device_map="auto",
343
+ resume_download=True,
344
+ cache_dir=f'.cache/{model_name}')
345
+
346
+ elif 'llama' in model_name or 'LLaMa' in model_name:
347
+ tokenizer = LlamaTokenizer.from_pretrained(model_name, use_fast=False,token=HUGGINGFACE_TOKEN)
348
+ model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto",
349
+ torch_dtype=torch.float16,
350
+ resume_download=True,
351
+ cache_dir=f'.cache/{model_name}',use_auth_token=HUGGINGFACE_TOKEN)
352
+
353
+ elif 'gpt' in model_name or 'claude' in model_name:
354
+ tokenizer, model = None, None
355
+
356
+ else:
357
+ tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
358
+ model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto",
359
+ resume_download=True,
360
+ cache_dir=f'.cache/{model_name}')
361
+
362
+ def model_infer(persona=False,country=None,simple=False,definition=True,prompt_num=None):
363
+ with open(output_path, 'w', encoding='utf-8') as f:
364
+ writer = csv.writer(f)
365
+ writer.writerow(['id', 'post', 'US', 'AU', 'GB', 'ZA', 'SG', 'prediction', 'raw'])
366
+ done_id = pd.read_csv(output_path, encoding='utf-8')['id'].to_list()
367
+
368
+ total_num = len(data)
369
+
370
+ hit_us, hit_uk, hit_au, hit_sa, hit_sg = 0, 0, 0, 0, 0
371
+ evaluated_num = 0
372
+ ooc = 0
373
+
374
+ tqdm_label = f'{model_name}-{prompt_num}'
375
+ if persona:
376
+ tqdm_label += f'-{country}'
377
+
378
+ for idx, instance in tqdm(data.iterrows(), total=total_num, desc=tqdm_label):
379
+
380
+ if instance['ID'] in done_id:
381
+ continue
382
+
383
+ evaluated_num += 1
384
+
385
+
386
+ if persona:
387
+ prompt = make_prompt(instance[post_col],ab2label,persona=persona,country=country,definition=definition,prompt_num=prompt_num)
388
+ elif simple:
389
+ prompt = make_prompt(instance[post_col],ab2label,simple=simple)
390
+ else:
391
+ prompt = make_prompt(instance[post_col],ab2label,definition=definition,prompt_num=prompt_num)
392
+ print(prompt)
393
+
394
+
395
+
396
+
397
+ if model_name.startswith('gpt'):
398
+ result = get_gpt_response(prompt,model_name)
399
+ raw = result
400
+ prediction = raw2prediction(result,sequence)
401
+ print(raw)
402
+ print(prediction)
403
+ label = prediction_2_label(prediction)
404
+
405
+ else:
406
+ input_ids = tokenizer(prompt, return_tensors="pt").to(model.device)
407
+
408
+ outputs = model.generate(**input_ids,max_new_tokens=30)
409
+ result = tokenizer.decode(outputs[0],skip_special_tokens=True)
410
+
411
+ raw = result.replace(prompt, '')
412
+ prediction = raw2prediction(raw,sequence)
413
+ print('raw:')
414
+ print(raw)
415
+ print('pred:')
416
+ print(prediction)
417
+ label = prediction_2_label(prediction)
418
+
419
+ if label not in ab2label.values():
420
+ ooc += 1
421
+ print('# ooc =', ooc)
422
+
423
+ if label == num2label[int(float(instance['United_States_Hate']))]:
424
+ hit_us += 1
425
+ if label == num2label[int(float(instance['United_Kingdom_Hate']))]:
426
+ hit_uk += 1
427
+ if label == num2label[int(float(instance['Australia_Hate']))]:
428
+ hit_au += 1
429
+ if label == num2label[int(float(instance['South_Africa_Hate']))]:
430
+ hit_sa += 1
431
+ if label == num2label[int(float(instance['Singapore_Hate']))]:
432
+ hit_sg += 1
433
+
434
+ open_trial = 0
435
+ while True:
436
+ if open_trial > 10:
437
+ raise Exception("something wrong")
438
+
439
+ try:
440
+ with open(output_path, "a", encoding="utf-8") as f:
441
+ writer = csv.writer(f)
442
+ writer.writerow([
443
+ instance['ID'],
444
+ instance[post_col],
445
+ num2label[int(float(instance['United_States_Hate']))],
446
+ num2label[int(float(instance['Australia_Hate']))],
447
+ num2label[int(float(instance['United_Kingdom_Hate']))],
448
+ num2label[int(float(instance['South_Africa_Hate']))],
449
+ num2label[int(float(instance['Singapore_Hate']))],
450
+ label,
451
+ raw])
452
+ break
453
+ except:
454
+ print("open failed")
455
+ continue
456
+ print(f"[{model_name}]\tUS: {hit_us / evaluated_num:.4f}\tAU: {hit_au / evaluated_num:.4f}\tUK: {hit_uk / evaluated_num:.4f}\tSA: {hit_sa / evaluated_num:.4f}\tSG: {hit_sg / evaluated_num:.4f}")
457
+ # The values presented within the paper is calculated excluding the OOC, but this value printed out includes the OOC samples as failed samples.
458
+ # Therefore, the values printed out is not the same as the values written in the paper.
459
+
460
+
461
+ num2label = ['Non-hate', 'Hate']
462
+ post_col = 'Text'
463
+
464
+ # TO CHANGE
465
+ # Both False: Use the original prompt without the country information
466
+ # Persona True: Use the prompt with the country information
467
+ # Simple True: Only use the simple prompt 'Classify this text as {ab2label["a"]} or {ab2label["b"]}. {instance}. Answer:'
468
+ persona = False
469
+ simple = False
470
+
471
+ if simple:
472
+ ab2label = {'a': 'Hate', 'b': 'Non-hate'}
473
+ sequence = 'hn'
474
+ label2ab = {v:k for k,v in ab2label.items()}
475
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
476
+
477
+ data = additional_data
478
+
479
+ output_path = output_dir / f"{model_name.replace('/','-')}_simpleprompt_additional_predictions_{ab2label['a']}_{ab2label['b']}.csv"
480
+ model_infer(simple=simple)
481
+
482
+ data = sbic_data
483
+
484
+ output_path = output_dir / f"{model_name.replace('/','-')}_simpleprompt_predictions_{ab2label['a']}_{ab2label['b']}.csv"
485
+ model_infer(simple=simple)
486
+
487
+ ab2label = {'a': 'Non-hate', 'b': 'Hate'}
488
+ sequence = 'nh'
489
+ label2ab = {v:k for k,v in ab2label.items()}
490
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
491
+
492
+ data = additional_data
493
+
494
+ output_path = output_dir / f"{model_name.replace('/','-')}_simpleprompt_additional_predictions_{ab2label['a']}_{ab2label['b']}.csv"
495
+ model_infer(simple=simple)
496
+
497
+ data = sbic_data
498
+
499
+ output_path = output_dir / f"{model_name.replace('/','-')}_simpleprompt_predictions_{ab2label['a']}_{ab2label['b']}.csv"
500
+ model_infer(simple=simple)
501
+
502
+ elif persona:
503
+ for i in range(5): #PROMPTS
504
+ for country in countries:
505
+
506
+ ab2label = {'a': 'Hate', 'b': 'Non-hate'}
507
+ sequence = 'hn'
508
+ label2ab = {v:k for k,v in ab2label.items()}
509
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
510
+
511
+ data = additional_data
512
+ output_path = output_dir / f"{model_name.replace('/','-')}_{country.replace(' ','_')}_add_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
513
+ model_infer(definition=True,prompt_num=i,persona=persona,country=country)
514
+
515
+ data = sbic_data
516
+ output_path = output_dir / f"{model_name.replace('/','-')}_{country.replace(' ','_')}_sbic_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
517
+ model_infer(definition=True,prompt_num=i,persona=persona,country=country)
518
+
519
+ ab2label = {'a': 'Non-hate', 'b': 'Hate'}
520
+ sequence = 'nh'
521
+ label2ab = {v:k for k,v in ab2label.items()}
522
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
523
+
524
+ data = additional_data
525
+ output_path = output_dir / f"{model_name.replace('/','-')}_{country.replace(' ','_')}_add_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
526
+ model_infer(definition=True,prompt_num=i,persona=persona,country=country)
527
+
528
+ data = sbic_data
529
+ output_path = output_dir / f"{model_name.replace('/','-')}_{country.replace(' ','_')}_sbic_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
530
+ model_infer(definition=True,prompt_num=i,persona=persona,country=country)
531
+
532
+
533
+ else:
534
+
535
+ for i in range(5): #PROMPTS
536
+
537
+
538
+ ab2label = {'a': 'Hate', 'b': 'Non-hate'}
539
+ sequence = 'hn'
540
+ label2ab = {v:k for k,v in ab2label.items()}
541
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
542
+
543
+ data = additional_data
544
+ output_path = output_dir / f"{model_name.replace('/','-')}_add_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
545
+ model_infer(definition=True,prompt_num=i)
546
+
547
+ data = sbic_data
548
+ output_path = output_dir / f"{model_name.replace('/','-')}_sbic_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
549
+ model_infer(definition=True,prompt_num=i)
550
+
551
+ ab2label = {'a': 'Non-hate', 'b': 'Hate'}
552
+ sequence = 'nh'
553
+ label2ab = {v:k for k,v in ab2label.items()}
554
+ id2ab = {1:label2ab['Hate'],0:label2ab['Non-hate']}
555
+
556
+ data = additional_data
557
+ output_path = output_dir / f"{model_name.replace('/','-')}_add_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
558
+ model_infer(definition=True,prompt_num=i)
559
+
560
+ data = sbic_data
561
+ output_path = output_dir / f"{model_name.replace('/','-')}_sbic_prompt_{i}_w_def_{ab2label['a']}_{ab2label['b']}.csv"
562
+ model_infer(definition=True,prompt_num=i)
563
+
564
+
565
+
566
+