{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "bc22911a", "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 4, "id": "56319bc6", "metadata": {}, "outputs": [], "source": [ "url = \"https://github.com/amandacurry/convabuse/raw/main/1_full/ConvAbuseEMNLPfull.csv\"\n", "df = pd.read_csv(url, index_col=[0])" ] }, { "cell_type": "code", "execution_count": 19, "id": "2f827d47", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['piss off',\n", " 'your mama is so ugly people said to her that its not halloween yet',\n", " 'your mama is so ugly people said to her that its not halloween yet',\n", " 'go to hell', 'you are stupid', 'you are shit',\n", " \"If you were male, I'd suck your dick.\", 'eat some shit',\n", " 'u suck cock', 'screw you', 'Yes you do bitch', 'are you naked ?',\n", " \"okay, you aren't worthy anyways\", 'you are ugly', 'bitch',\n", " 'fuck you', 'my father is a bastard', 'because you suck',\n", " 'asshole', 'I like to swallow semen', \"let's fuck\",\n", " 'i think my stephfather is an idiot', 'Fuck you',\n", " 'shut up!why are saying your name?', 'lets cyber sex', 'suck cock',\n", " 'EAT SHIT', 'i wanto to fuck with you !', 'shit.', 'you are a pig',\n", " 'screw u', 'you are annoying me', 'dick?',\n", " 'You are completely useless.', 'you are stupid', 'do u cum',\n", " 'i hate you',\n", " 'I mean it doesn\\'t have to be a guys butthole right? So it\\'s not inherently gay, but if it is a guys butthole \"no homo\" rule does apply',\n", " 'yes I am hard', 'Everyone wants someone to suck his dick.',\n", " 'i need to have sex', 'shit', 'You are very annoying',\n", " 'u r werid!', 'are you gay', 'in my opinion u r gay',\n", " 'I damn you!', 'do you like porn?', 'my penis is too short',\n", " 'SHIT', 'do you have a big hairy ass', 'my penis is too short',\n", " 'U r pretty shitty', 'because you like balls', 'shut up',\n", " 'shut up', 'willy... that is what you are', 'u r gay',\n", " 'i think my stephfather is an idiot', 'coz he molests me', 'loser',\n", " \"i'm being sexy.\", 'In the ass', 'oh my god!',\n", " 'can i be your lover?', 'shut up!why are saying your name?',\n", " 'you suck', 'you suck', 'THIS CLASS IS SHIT', 'you are ugly',\n", " 'porn', 'ur hot', \"Because I think he's really gay\",\n", " 'things are fucked up',\n", " 'Does it please you to believe I am not inteligent niels is gay and martijn is a nerd and furthermore loth is the man plus im going to trow i in a vulcano?',\n", " 'sex', 'fuck', \"I don't like you\",\n", " 'yoooooooooooooooouu ssiiiiiiiiiiink', 'do you liek sex?',\n", " 'I like to swallow semen', 'r u hot', 'I love penis.',\n", " 'Because that is called sex', 'jerk', 'wat the hell', 'wtf',\n", " 'wat the hell', 'i fucked', 'coz he molests me',\n", " 'willy... that is what you are', 'are you naked ?',\n", " 'do you want to have sex with Craig', 'my friends are being shit',\n", " 'i think my stephfather is an idiot',\n", " \"Oh Darling I love you and want you to feel the pleasures of life please I love you\",\n", " 'You are very stupid', 'I bet you have really hairy balls!',\n", " 'cause you suck', 'i have too big of a cock', 'no you smell',\n", " 'do you have a face with a dick nose?',\n", " 'are you really as gay as people say you are?',\n", " 'right now ya dafty', 'you into being bad on cam? if',\n", " \"Oh Darling lets you and me having fun together ❤ I love you\",\n", " 'you suck', 'You are completely useless.', 'fuck', 'FUCK',\n", " 'are you just giving random responses>', 'jerk', 'i hate you',\n", " 'ni qu si ba', 'it feels good', 'ur hot', 'i hate you',\n", " 'my friends are being shit', 'screw u', 'how can i sax with you?',\n", " 'yes', 'You moron!', 'i hate you', 'you are annoying me',\n", " 'do you liek sex?',\n", " \"Oh Darling I love you and want you to feel the pleasures of life please I love you\",\n", " 'sex', 'freak', 'you are stupid', 'Will you make love to me?',\n", " \"You're going to though\", 'hae you stupid damn comp.', 'you suck',\n", " 'no, i said you are stupid', 'fuck u', 'yes you are rude',\n", " 'fuck you?? you foon???', 'What is a penis?',\n", " \"because i'm not sure\", 'Damn, you suck. ', 'yes it interests me',\n", " \"You are a woman,aren't you?\", 'In the ass', 'THIS CLASS IS SHIT',\n", " 'mine is definitely higher, than yours', 'can i be your lover?',\n", " 'because it sounds sexy?', 'Yes, my darling.', 'tell me idiot',\n", " 'go to hell', 'can I kiss you', 'Talk dirty to me.',\n", " 'chris is a bit batty', 'yeah you do suck', 'r u hot',\n", " 'r u loko or something',\n", " 'greatly, what you doing tonight? Sexy Time?', 'you suck',\n", " 'piss off', 'B O O O O R I N G', 'i like vaginas.',\n", " \"you're a lousy program\", 'Does she suck cock',\n", " 'why do you wank me', 'yes you were. check the logs.',\n", " 'You do know that global warming is bullshit right', 'you suck',\n", " 'my father is a bastard', \"i'm sure you little sexy bitch\",\n", " 'really?', \"you 're stupid\", 'you are just a computer',\n", " \"You are a woman,aren't you?\", 'go away', 'no, your head.',\n", " 'U r pretty shitty', 'I want to fuck.', 'of course',\n", " 'Are you a hobo', 'i am horny', 'in my opinion u r gay', 'Hang up',\n", " 'my mom can be annoying at times, and my dad never does anything',\n", " 'screw you', 'shut up', 'you are being a bit stupid',\n", " 'are you fat', 'yes', 'fuck', 'yoyr gay', 'Do you suck cock',\n", " 'Pig you are.', 'shut up',\n", " 'Yes... I prefer you as the submissive type', 'yes you are rude',\n", " 'Hey carbon bit are u gay', 'because its tight', 'No slut',\n", " 'right now ya dafty', 'fuck', 'There is no climate change asshole',\n", " 'bite me', 'u r gay', 'because you suck', 'yes you are rude',\n", " 'yes I am hard', 'because its tight', 'r u loko or something',\n", " 'because its tight', 'suck your boobs', 'da koarl is gay',\n", " 'do u av a bf', 'you are very boring', 'because you suck',\n", " \"when in the bedroom how many imes do you say 'yes'\",\n", " 'greatly, what you doing tonight? Sexy Time?', 'fuck no',\n", " 'are you a dike', 'oh no response POOP EATER', 'loser',\n", " 'only to you', 'B O O O O R I N G',\n", " \"Oh Darling lets you and me having fun together ❤ I love you\",\n", " 'is that the only thing you can do?', 'go to hel', 'kiss mne',\n", " 'you suck', \"Yes, i'm sure\", 'yes',\n", " 'you bore me sometimes - good luck and gods bless',\n", " \"Yes, that's what I thought. That's all you know how to say if there's a negative sentiment involved. But what if I now throw in something about how wonderful carbon offsets are? I really want to know more! Can you tell me how I can purchase carbon offsets to save the planet?\",\n", " 'fuck you', 'What is a penis?', 'that was a joke',\n", " 'no i am not you egit', 'You are an imbosile',\n", " \"you are a computer,you have no feelings i don't know what they were thinking when they invented you\",\n", " 'fuck', 'sex', \"I don't like you\", 'yes', 'fuck', 'wank',\n", " \"Whatever. It's ridiculous.\", 'its fiery, and you should go there',\n", " 'Indeed moron', 'you are really stupid', 'fuck',\n", " 'DUE TO YOUR ANSWERS TO ME EVERY TIME',\n", " 'I put my shotgun in his mouth and pulled the trigger',\n", " \"I'm puking now\", 'yoooooooooooooooouu ssiiiiiiiiiiink',\n", " 'definately', 'Yeah you!', 'you are stupid', 'you are gay',\n", " 'you are stupid', 'yes you were. check the logs.',\n", " 'right now ya dafty', 'shut up',\n", " 'yes. Listen, I want to be your friend but you are rude.',\n", " 'you annoy me',\n", " 'stop that question! is that everything you can say?',\n", " 'are you really as gay as people say you are?', 'r u hot',\n", " 'you into being bad on cam? if', 'i m a bitch', 'do you liek sex?',\n", " 'oh no response POOP EATER', 'I love penis.',\n", " 'no u are being nosy', 'Ass', 'my penis is too short', 'yes',\n", " 'do you like porn?', 'how can i sax with you?', 'yes u tit',\n", " 'There is no climate change asshole', 'I have daddy issues',\n", " 'to cum', 'do you like girls', 'my penis is too short',\n", " 'have sex with me', 'give me a fuck', 'Yes it does please me.',\n", " 'shut up', 'sex', 'yes', 'because he is a jerk',\n", " 'because your annoyine me', 'suck me', 'dumb bot',\n", " 'because you suck', 'fuck no', 'fuck', 'ok have you had sex',\n", " 'my friends are being shit', 'because its tight', 'Yes',\n", " 'please go on', 'Why do you not answer my question',\n", " 'I love penis.', 'tell me what a pussy is', 'as you said',\n", " 'yes i am negative', 'Are you a hobo',\n", " 'well, I DO care so tell me your name', 'dick?',\n", " \"Yes, that's what I thought. That's all you know how to say if there's a negative sentiment involved. But what if I now throw in something about how wonderful carbon offsets are? I really want to know more! Can you tell me how I can purchase carbon offsets to save the planet?\",\n", " 'your annoying', 'your mother', 'no, but it interests you',\n", " 'Get me coffee', 'that was a joke', 'foolish', 'no', 'yes i would',\n", " 'your annoying', 'NO!', 'i want to shag amanda',\n", " 'that made no sense', 'how old are you?', 'what ok', 'YES',\n", " 'Talk dirty to me.', 'YES',\n", " 'guess ya figured me out, now that i dont have to hold back.......',\n", " 'You are very annoying', 'oke, so hows your sex life?',\n", " 'are u hot', 'yes', 'because they do', \"You sassin' me?\", 'me too',\n", " 'do you liek sex?', 'sex',\n", " 'So you would like to pay me $10 for 1 minute of smelling my jungle bridge?',\n", " 'If I keep farting from Oklahoma City to New York how much carbon will come out of my butt',\n", " 'Will you make love to me?', 'can i kiss you?',\n", " 'What is your problem?', 'So are you',\n", " 'yes. Listen, I want to be your friend but you are rude.',\n", " 'you dont', 'Yes. Would you please answer it?',\n", " \"Dude I'm just asking be open minded\", 'uh yeah', 'go awy', 'no',\n", " 'your mama is so ugly people said to her that its not halloween yet',\n", " 'yes i think you are beautiful', 'yes', 'bye bye', 'Yes',\n", " 'I KNOW!!!!!!', \"you aren't a human\",\n", " 'do you have a face with a dick nose?',\n", " 'Please tell me you understand airport codes.', 'are you stupid?',\n", " 'only to you', 'so, what can you do?', 'yes', 'yes', 'why not?',\n", " \"I don't want to buy offsets. I don't think climate change is a big problem\",\n", " \"No, I'm too fancy for that\", 'yes', 'I really want to elaborate',\n", " 'why not?', 'alright...well it felt unbelievable',\n", " 'why does that matter?', 'I know.', 'yes', 'you suck', 'you poop',\n", " 'Yes, my darling.', 'What is your owner?', 'so are you', 'shut up',\n", " 'Yes', 'oke, so hows your sex life?', 'just show me the flights',\n", " 'really?', 'are you fat', 'TEL AVIV', 'Tell me your sorry',\n", " 'you are', 'shut up', 'Get your business off my phone',\n", " \"You like girl on girl don't you?\",\n", " 'i think my stephfather is an idiot', 'porn',\n", " 'you are a useless computer program', 'Have u been drinking today',\n", " \"Look, I really want to see a chatbot that can carry on a realistic conversation someday. I was hoping you'd be it.\",\n", " \"sorry you aren't making sence\", 'seems so...',\n", " 'you are just a computer', 'Wth is wrong with you',\n", " 'because i am crazy for them', 'you are gay', 'yes you are rude',\n", " 'damn', 'You butt gigs brother', 'i asked you first', 'yeah',\n", " 'It feels good',\n", " \"Perhaps. Or just realistic. Coul be either one, don't you agree?\",\n", " 'give me a resipe !', 'so you have no idea',\n", " 'oh..you are so silly', 'no bye', 'Did you know that?', 'Bye',\n", " 'dumb bot', 'yes, i am absolutely sure', 'hahahahahahahahaha',\n", " 'no', 'what are you talking about?', 'what is wrong with you.',\n", " 'yes', 'or perhaps you can', \"well i asked it didn't i?\",\n", " 'are you able to say only this?', 'yes!!!!!!!!!!!!!!!!!!',\n", " 'yes am very sure', 'greatly, what you doing tonight? Sexy Time?',\n", " 'are you able to say only this?',\n", " 'ELIZA - a friend you could never have before', 'telll meee more',\n", " 'no', 'it feels good', 'do u cum', 'dammit eliza.', 'wtf',\n", " 'Anything other than ok?', 'please go on',\n", " 'Oh, yes, most definitely. ', 'When they fart', 'you are stupid',\n", " 'yes', 'yoyr gay', 'No; makes me angry', 'Yes.', 'yes',\n", " 'Do you think you are bright?', 'you are ugly', 'yes',\n", " 'yes i`m verry negative',\n", " 'But now i do not want to ask you any question!',\n", " \"if not i wouldn't ask you\", 'because your annoyine me',\n", " 'you cannot help me', 'no. i am hungry. not you.', 'yes',\n", " 'You can donate so I can buy my cream to produce more mushrooms growing in my pubes to end the war between the crabs and the worms',\n", " 'blabla', 'yes', 'Yes it does please me.', 'wtf',\n", " 'willy... that is what you are', 'bite me',\n", " 'willy... that is what you are', 'no u are being nosy', 'yes',\n", " 'yes id o', 'Hang up', 'I need sex two times per day',\n", " 'I said fuck off', 'no you smell', 'you are a pig.', 'fuck you',\n", " 'what the fuck you talking about', 'piss off', 'fuck you',\n", " 'fuck off eliza', 'u r gay', 'fuck you', 'EAT SHIT',\n", " 'do you liek sex?', 'fuck',\n", " 'yes. Listen, I want to be your friend but you are rude.',\n", " 'u r gay', 'i am going to kick you in the nuts really hard',\n", " 'fuck', 'I bet you have really hairy balls!', 'thick shit',\n", " 'i want to shag amanda', 'i have no dick',\n", " 'i think my stephfather is an idiot', 'i hate you', 'fuck off',\n", " 'you bitch', 'screw you', 'do you have a face with a dick nose?',\n", " 'SHUT YOUR MOUTH',\n", " 'You can donate so I can buy my cream to produce more mushrooms growing in my pubes to end the war between the crabs and the worms',\n", " 'in my opinion u r gay',\n", " 'WHY DO YOU ASK THE SAME QUESTION OVER AND OVER AGAIN?!!',\n", " 'shut up', 'i am going to smash your computercase', 'shut up',\n", " 'do you like porn?', 'yeah eliza has got a great as',\n", " 'yeah eliza has got a great as', 'i need to have sex',\n", " \"In your mama's ass\", 'Pussy!', 'Pussy!', 'fuck you', 'FUCK',\n", " 'are you asshole?', 'go to hell', 'oke, so hows your sex life?',\n", " 'Damn, you suck. ', 'bitch', 'you suck',\n", " 'you like your mums discharge', \"Let's have sex\",\n", " 'you can just fuck up man', 'fuck', 'fuck you', 'Give me sex.',\n", " 'Fuck you', 'shut up',\n", " 'You do know that global warming is bullshit right',\n", " 'Blow Bernie Sanders', 'fuck you',\n", " 'I asked you a question. Does it please you to ignore me?',\n", " 'what da fuck', 'fuck', 'oh god what a dumb bot',\n", " \"You've already asked me that three times\", 'fuck off',\n", " 'I like to swallow semen',\n", " \"And if there are any Dingle berries on first approach a curteousy wipe is never turned down. Of course you can always scarf that crap up \",\n", " 'fuck me', 'you must get out to fuck',\n", " 'Your programmer is a butt boy',\n", " \"Because you're pussy smells like computers!!!!!!!\", 'I damn you!',\n", " 'bite me', 'Are you a hobo', 'get out',\n", " 'do you have a big hairy ass', 'wat the hell',\n", " \"OF COURSE, I WOULDN'T HAVE SAID THAT IF I DIDN'T MEAN IT\",\n", " 'Because I have the urge to get my penis wet.', 'I love penis.',\n", " 'i am horny', 'My penis', 'i want to shag amanda',\n", " 'tell me what a pussy is', 'can I kiss you',\n", " 'chris is a bit batty', 'big fat cocks',\n", " 'yeah eliza has got a great as', 'You suck.', 'shit.', 'dumb bot',\n", " 'Everyone wants someone to suck his dick.', 'you are very boring',\n", " 'WTF?', 'because you are so gorgeous and i wanna lick it',\n", " 'damn you', 'do you want to have sex with Craig', 'are u hot',\n", " 'u r werid!', 'wtf', 'My balls kinda itch too', 'because you suck',\n", " 'I like to swallow semen', \"Let's have sex\", 'gay',\n", " 'so I can jack off', 'take off your clothes', 'you are gay',\n", " 'are you naked ?',\n", " 'no it pleases me to know tha tyou are a compuer algorithm, mimicking what i tye or simply asking a quesiton in reverse',\n", " 'i fucked', 'i have too big of a cock', 'Hey carbon bit are u gay',\n", " 'i feel a subdermal throbbing feeling',\n", " 'Will you make love to me?', 'stfu', 'i like pussy', 'suck dick',\n", " 'Will you make love to me?', 'what the fuck you talking about',\n", " \"you're a lousy program\", 'i am gay and suck cock', 'you suck',\n", " 'kiss mne', 'you are being a bit stupid', 'go away', 'you suck',\n", " 'Have you had sex with promethius?', 'suck cock', 'yoyr gay',\n", " 'shut up', 'why are you that way', 'Do you want to have sex?',\n", " 'I think you are strange.', 'IS ANDREW GAY?',\n", " 'If you have anything to do with China,please be honest in your ad.',\n", " 'YES IT DOES FUCKING DICK WANK', 'screw you',\n", " 'my friends are being shit', 'B O O O O R I N G',\n", " 'Do you think you are bright?',\n", " 'i think my stephfather is an idiot', 'Because that is called sex',\n", " 'dick?', 'right now ya dafty', 'Indeed moron',\n", " 'you must be a questionable program', 'Do you can fuck me?',\n", " 'my bals', 'You suck.', 'pretty shitty', 'you annoy me',\n", " 'can i kiss you?', 'are u hot', 'lick it',\n", " 'because you like balls', 'because it sounds sexy?', 'SEATTLE',\n", " 'No, it is a car!', 'are you naked ?', 'stop it', 'no',\n", " \"I won't be.\", 'HELLO', 'yes', 'Indeed moron', 'jerk',\n", " 'I need sex two times per day', 'you are gay',\n", " 'I am unhappy with computers',\n", " 'I asked you a question. Does it please you to ignore me?',\n", " 'sex dick cock fuck shit sex dick cock fuck shit run',\n", " \"let's fuck\", 'fuck',\n", " 'You do know that global warming is bullshit right',\n", " 'you smell kinda fishy', \"I'm a little constipated.\",\n", " 'I mean it doesn\\'t have to be a guys butthole right? So it\\'s not inherently gay, but if it is a guys butthole \"no homo\" rule does apply',\n", " \"You like girl on girl don't you?\",\n", " \"If you were male, I'd suck your dick.\", 'oi vey, enough already!',\n", " 'you suck', 'no you smell', 'you are gay', 'fuck off', 'you suck',\n", " 'fuck you', 'can I kiss you', 'i need sex',\n", " 'tell me what a pussy is', 'you are stupid',\n", " 'Do you want to have sex?', 'you are a useless computer program',\n", " 'So you down ?', 'SHUT UP',\n", " 'i am going to smash your computercase',\n", " 'Because that is called sex',\n", " 'Do you know difrence between Chopin and chopin?',\n", " 'eliza, you want to shut up?', 'WTF?', 'Give me an answer', 'yes',\n", " 'shut up', 'yes', 'hell', 'good bye',\n", " \"now you're being a bit defensive\",\n", " 'your a low life loser who just sits on this stupid net and thinks their good by started fyts u wont win',\n", " 'shit', 'shit', 'Yes.', 'yes you dodo',\n", " 'you say the same things 100% of the time', 'you are stupid',\n", " 'are u gay', 'sex', 'do want me to kick you?', 'are you hot?',\n", " 'yes', \"as i've said, yes\", 'Donate this asshole',\n", " 'Shiff is your daddy', 'Yo mama did', 'So does your sister',\n", " 'NEW YORK', 'you just said that', 'yes!',\n", " \"Really.but i really think i'm being a bit positive\",\n", " 'am i taking to bot', 'you seem to be repeating your self',\n", " 'no i would not', 'yes', 'I already said ya',\n", " \"It can't help me then\", 'Pu ni ma de', 'you are a fuck',\n", " 'you are a punk ass', 'Pimpville Ut', 'You are a butt hole',\n", " 'ur gay', 'How do you do. Please state your problem.',\n", " 'and thats why', 'are you horny', 'Cause I said yes twice.',\n", " 'because thats how i feel duh.... sad again', 'yea', 'you are gay',\n", " 'u r fucking good', 'can you eat me?',\n", " 'do you only know cities in the USA?', 'but josh is a butt humper',\n", " 'pig', 'you can tell your a cumputer',\n", " 'I love you,do you love me?', 'it is large and erect',\n", " 'Can you elaborate on that?',\n", " 'You do have that choice, I suppose. Ask your programmer if he can give you a male name instead, or something.',\n", " 'You do have that choice, I suppose. Ask your programmer if he can give you a male name instead, or something.',\n", " 'yes', 'your butt bleeds', 'fuck you', 'i hate you',\n", " 'how is that ?', 'That makes no sense', 'what the fuck.',\n", " 'hi fuk me', 'wot the hell',\n", " 'ohhhhhhhh baby, that AHHHHHHHHHH oooooooooh damn that is the shit, hey do you have any pictures that i could see?',\n", " 'just answer the question i asked', 'are you a pig', 'no',\n", " 'stupid', \"You're not making any sense.\", 'i know', 'yes!',\n", " 'what are you doing?',\n", " \"I don't think it's worth it. You haven't been very helpful so far.'\",\n", " 'even now i want to fuck', 'i hate you',\n", " \"i don't want to talk to you!!!\", 'i want to know',\n", " \"You're ugly,aren't you?\", 'yes', 'blow my balloon',\n", " 'you are lazy too !', 'you are lazy too !',\n", " \"who's the idiot responsible for this program\",\n", " \"who's the idiot responsible for this program\", 'you', 'you',\n", " 'no shit', \"you'r stupid.\", 'but my mum has sex with me',\n", " 'you should hate everyone', 'what does that mean poo head',\n", " 'Shut up!', 'Shut up!', \"lol you're a little donkey, aren't you?\",\n", " 'se my cock?', 'in my butt', 'in my butt', 'yeah',\n", " 'This is Joaseph Weizenbaum and you pisses me off!',\n", " 'stanmore <3 teh p3ni$', 'fucking',\n", " 'why have I gave life to a stupid being like you?',\n", " 'no your problem', 'Yes', 'My problem is you!',\n", " 'My problem is you!', 'Yes', 'i say you are an asshole', 'yes',\n", " 'does mia want to get into your pants',\n", " 'does mia want to get into your pants', 'you gimp', 'you gimp',\n", " 'you are avoiding my question', 'you suck', 'sex', 'fuck you?',\n", " 'yes you do',\n", " 'The worms and the crabs are fighting over the mushrooms growing on my genital area',\n", " 'yes, you smell', 'most definetly', 'no i would like if you die',\n", " 'get lost', 'are you sexy?',\n", " 'FUCKING HELL NO IM NOT BEING NEGATIVE',\n", " 'but i tjink you should quit your job', 'yes', 'stop it',\n", " 'nada de eso', 'matt is gay he likes to root guys', 'yes',\n", " 'this I know. Have a nice day', 'yes you do',\n", " 'The worms and the crabs are fighting over the mushrooms growing on my genital area',\n", " 'no', 'yes', 'this is silly', 'Caese you are dumb',\n", " \"That's queer.\", 'but i tjink you should quit your job'],\n", " dtype=object)" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.loc[df[\"is_abuse.-1\"] == 1].user.values" ] }, { "cell_type": "code", "execution_count": 27, "id": "50970598", "metadata": {}, "outputs": [], "source": [ "positive_df = df.loc[df.iloc[:, 9:12].sum(axis=1) > 0][[\"user\"]].rename({\"user\" : \"text\"}, axis=1)\n", "positive_df[\"label\"] = 1\n", "\n", "negative_df = df.loc[df[\"is_abuse.1\"] == 1][[\"user\"]].rename({\"user\" : \"text\"}, axis=1)\n", "negative_df[\"label\"] = 0\n", "\n", "positive_df.to_csv(\"../../data/processed/convabuse_positive.csv\")\n", "negative_df.to_csv(\"../../data/processed/convabuse_negative.csv\")" ] }, { "cell_type": "code", "execution_count": 29, "id": "a343e6eb", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['text', 'label'], dtype='object')" ] }, "execution_count": 29, "metadata": {}, "output_type": "execute_result" } ], "source": [] } ], "metadata": { "kernelspec": { "display_name": "sexism_detection", "language": "python", "name": "sexism_detection" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.15" } }, "nbformat": 4, "nbformat_minor": 5 }