├── Sheet_2.csv ├── README.md └── Sheet_1.csv /Sheet_2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeshamAsem/NLP-Classification-for-Text/HEAD/Sheet_2.csv -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NLP-Classification-for-Text 2 | 3 | we have 2 files sheet 1 & sheet 2 4 | 5 | sheet 1 contain 80 replies from users to chatbot , & it either classied as offensive (flagged) or non-offensive (not flagged) 6 | 7 | and sheet 2 contain 125 resumes , some of them looks unreal so it flagged & some are real : not flagged 8 | 9 | we need to use NLP techniques to train our model , so he can be able to diffrentiate between them 10 | 11 | Data File : https://www.kaggle.com/samdeeplearning/deepnlp 12 | -------------------------------------------------------------------------------- /Sheet_1.csv: -------------------------------------------------------------------------------- 1 | response_id,class,response_text,,,,, 2 | response_1,not_flagged,I try and avoid this sort of conflict,,,,, 3 | response_2,flagged,Had a friend open up to me about his mental addiction to weed and how it was taking over his life and making him depressed,,,,, 4 | response_3,flagged,"I saved a girl from suicide once. She was going to swallow a bunch of pills and I talked her out of it in a very calm, loving way.",,,,, 5 | response_4,not_flagged,i cant think of one really...i think i may have indirectly,,,,, 6 | response_5,not_flagged,"Only really one friend who doesn't fit into the any of the above categories. Her therapist calls it spiraling."" Anyway she pretty much calls me any time she is frustrated by something with her boyfriend to ask me if it's logical or not. Before they would just fight and he would call her crazy. Now she asks me if it's ok he didn't say ""please"" when he said ""hand me the remote.""", ,,,, 7 | response_6,not_flagged,a couple of years ago my friends was going to switch school because of low self esteem too. I helped him overcome that shit too,,,,, 8 | response_7,flagged,Roommate when he was going through death and loss of a gf. Did anything to get him out of his bedroom.,,,,, 9 | response_8,flagged,i've had a couple of friends (you could say more than friends) with quite severe depression/ emotional problems. i helped for a while but eventually both relationships started to suffer as a result of both our personal problems,,,,, 10 | response_9,not_flagged,Listened to someone talk about relationship troubles. Offered some advice from personal experience.,,,,, 11 | response_10,flagged,"I will always listen. I comforted my sister when she lost her virgity the same night she walked in on her boyfriend cutting himself, and then our parents found out she threw a house part. Simply bring supportive was my focus.",,,,, 12 | response_11,not_flagged,"Took a week off work, packed up the car and picked up a friend who was on the verge of losing it and went camping/surfing for a week. His parents were a big part of the problem and being away from them and others and physical activity every day for a week. but more just being around helped i feel.",,,,, 13 | response_12,flagged,On the memorial anniversary of my friends father I was with him to give support and remind him that he's not alone.,,,,, 14 | response_13,not_flagged,Anxious girlfriend always needs my help,,,,, 15 | response_14,not_flagged,Never,,,,, 16 | response_15,not_flagged,You as a mom,,,,, 17 | response_16,flagged,"ex gf was a cutter/suicidal, got her out of her own issues while slowly dying inside.",,,,, 18 | response_17,not_flagged,I have helped advise friends who have faced circumstances similar to mine,,,,, 19 | response_18,not_flagged,I've helped friends out before,,,,, 20 | response_19,not_flagged,A friend that is a girl and just talk to her tryin to make her feel better,,,,, 21 | response_20,not_flagged,expressing concern and openness to friends when they are dealing with troubles. letting them know they can fell open for dialog.,,,,, 22 | response_21,not_flagged,listening to girlfriend's problems,,,,, 23 | response_22,flagged,"Friend was thinking about suicide, after a few days I managed to talk her down.",,,,, 24 | response_23,flagged,"Having gone through depression and anxiety myself, I understand the struggles and have a few personal methods to cope when stuff hits. Having this knowledge has allowed me to help several people on the internet as well as my other friends when they have faced similar issues and talk to me about them. I understand how important listening is and offer my experiences to help them get through what they face.",,,,, 25 | response_24,not_flagged,"Sometimes my friends bring up issues they are having with themselves, and I feel that I give them good advice and make them feel adequate and normal. I just try to be kind and helpful and honest.",,,,, 26 | response_25,not_flagged,never i guess people dont see me as a guy they would go to,,,,, 27 | response_26,flagged,"Last year, my best friend was diagnosed with anxiety disorder and depression. She tried to commit suicide. I tried my best to be there for her the entire time throughout her recovery.",,,,, 28 | response_27,flagged,Cleaning up my friend's campsite and slightly helping him while he was living all summer as an alcoholic in the Mt. Hood woods.,,,,, 29 | response_28,not_flagged,i listen pretty damn well. better at that as apposed to telling my own story.,,,,, 30 | response_29,flagged,Helping a friend through dealing with his alcoholic mother.,,,,, 31 | response_30,not_flagged,I used to tutor homeless men at a shelter to help them obtain their GED's. They were all age 50+ and some of them were even reading at a first grade level.,,,,, 32 | response_31,not_flagged,I am a high school teacher so almost everyday.,,,,, 33 | response_32,not_flagged,Friends often come to me to talk about the issues that they're facing in life.,,,,, 34 | response_33,not_flagged,"Summer camp, countless kids have the same issue. I tell them i how it is when you cant listen or are restless.",,,,, 35 | response_34,not_flagged,"Haha. In eight grade, kid got rejected twice. Wanted her to sign his yearbook but he was too nervous. I told him she doesn't really care about rejecting him and she thinks no less of him. He did it. Probably more, but that's what comes up off the top of my head.",,,,, 36 | response_35,not_flagged,Don't have a specific example but just letting people know you're there if they want to talk.,,,,, 37 | response_36,not_flagged,Some of my friends have gone through the same type of struggle I have been through. I let them know that they could talk to me about anything and that being honest with yourself even if the truth hurts is the best way to start to get back up.,,,,, 38 | response_37,flagged,"Friend who had big addiction issues, ended up being completely isolated, skipped school, and had a very low self esteem. I convinced him to go see a doc together, and promised him that i would go through everything with him. He went to rehab for a few months and now he's clean. But the complete lack of support from his family, from school, changed him. I think it was too late when I helped him (he was like that for 5 months) and he'll never be the same as before.",,,,, 39 | response_38,not_flagged,I've always been a good listener for people and I think a lot of people just want to be heard and not necessarily fixed. They just need to express themselves to relief their thoughts to others so they're not trapped so much within the confines of their own head. I've always lent an ear for someone to speak to.,,,,, 40 | response_39,flagged,One of my best friends was diagnosed with cancer and I did as much as I could for him during that time. I visited him almost every day when he was in treatment just so he didn't have to be alone or anything. When he came back to school I helped him get caught up with school work too.,,,,, 41 | response_40,not_flagged,I don't think I'm qualified to be a serious resource for someone else.,,,,, 42 | response_41,flagged,Many times for my one friend who tried hard drugs (cocaine) and was dealing with depression because of girls,,,,, 43 | response_42,not_flagged,"A lot for my friends. When they have had girl problems, or have just been down in the dumps about life. I always try to look on the positive side of life, and I try to reflect that on my friends' lives as well.",,,,, 44 | response_43,not_flagged,"I'm the theripist of my friends, they always come to me",,,,, 45 | response_44,not_flagged,Describe? Nah,,,,, 46 | response_45,not_flagged,"My brother went through the same struggles I did, after i found help I was able to set him on the path to healing.",,,,, 47 | response_46,not_flagged,Friend got dumped by girl he had been in a relationship in for 2 years. I stayed by his side until he stopped feeling bad about it. I was there for him.,,,,, 48 | response_47,not_flagged,I open myself to any friend in need of emotional support.,,,,, 49 | response_48,not_flagged,GF and I help her through a lot of shit because I myself have been through a lot of shit.,,,,, 50 | response_49,flagged,"I had a friend that would go off about girls and get super depressed. He told me he was going to kill himself one night and I drove 1n hour and a half to go look for him. By then the cops had already taken him to the hospital but me and a friend went and hung out with him. Also been there to help try and talk him down. Another person I hadnt been friends with for years cause of some stuff called me out of the blue on thankgiving last year. I called back and got a hospital number so I knew something was up. Ended up being a kid who I was friends with years before but was a huge douche to me. He was in the psych ward for trying to kill himself. I got a hold of him and talked to him for a while. Whenever he would call I would answer and be there even though I still had the shit from years earlier on my mind. There are people that I might not want to be around but if it's a situation like this I'll be there for people. My goal or purpose in life that's sustained my survival is to help make other peoples lives a little bit better. Make people laugh when they're sad, help people out when nobody else will. Basically treat other humans even strangers with the respect and kindness of a friend. That's all people need sometime. Let people talk through their shit with me and offer helpful advice if I can. I'm still swimming in my own shit but that's enough to keep me going, keep that little light at the end of the tunnel switched on. Idk how long that will last but I'll be here till it flickers out.",,,,, 51 | response_50,not_flagged,Sometimes I'll calm my friends down after bad stuff happens.,,,,, 52 | response_51,not_flagged,"I once acted as a resource for someone who was struggling in school, and I helped them with their schoolwork.",,,,, 53 | response_52,flagged,My friend was going through a period of intense depression and i made sure that i was always there for him.,,,,, 54 | response_53,not_flagged,"I have talked though some major blows in my girlfriends life. She has had some tough times, and I helped her with them.",,,,, 55 | response_54,not_flagged,Talking to a friend over a break up.,,,,, 56 | response_55,not_flagged,I care about other people more than myself so I listen and help them through tough times,,,,, 57 | response_56,not_flagged,"Over the internet a LOT of people write to me to talk about their problems. Its often girl related, I dont know, I guess it can be nice to rant to someone you dont know irl/someone who can look at the situation a little bit more objective? I think a lot of guys also feel that it can be hard to talk to girl friends irl about their innermost feelings sometimes, thats the feeling I get at least. My friend jokingly refers to me as an Agony Aunt""", because so many people come to me with their problems. All I do is listen,, ,, 58 | response_57,not_flagged,"Friends sometimes come up to me and ask for advice, I try and give it the best I possibly can",,,,, 59 | response_58,flagged,"My friend dealt with anxiety and this desire for everything in her life to be perfect, she describes it as caring what happens to much, but either way I simply talked to her and when she would try and change the subject I would have to drag her back in due the fact that she didn't want to talk about it, but in reality she wouldn't get better unless i pulled her back into it and helped her through it. But how i helped was by basically talking to her, and giving her the advice she needed to hear, not the one she wanted to such as oh you'll be ok this will all blow over"" what i said was more along the lines of being so blunt that many may find it rude but for her and i it was essential to making any progress.""""y friend dealt with anxiety and this desire for everything in her life to be perfect she describes it as caring what happens to much but either way I simply talked to her and when """,,,,, 60 | response_59,not_flagged,Simply being there as a friend for somebody who's struggling.,,,,, 61 | response_60,flagged,I've had some friends come to me saying people or acquaintances they've known who have killed themselves try and find comfort with me because my best friend killed himself my junior year of high school so they've come to me hoping to find some answers or peace in the turmoil.,,,,, 62 | response_61,not_flagged,"People calling, talk some sense into them, maybe facebook chat..",,,,, 63 | response_62,flagged,"Having self harmed in the past, I shared my experience with a friend in hopes of swaying her from those actions.",,,,, 64 | response_63,not_flagged,Have worked through problems with friends,,,,, 65 | response_64,not_flagged,When my friend needed help when she was going through some tough stuff. I knew that she needed it but she wouldn't admit it. So I brought it up and initiated it and we talked about it and it really helped her.,,,,, 66 | response_65,flagged,My sister has some pretty severe issues with her mental health. I try to be there for her when she needs it and I'd like to think its helped her.,,,,, 67 | response_66,not_flagged,Helped friends through stuff.,,,,, 68 | response_67,not_flagged,"I helped encourage a friend to go to therapy, and often listened to their problem to let them know there was someone there for them.",,,,, 69 | response_68,not_flagged,I haven't really met anyone dealing with attention issues. So I haven't had a chance to help unfortunately.,,,,, 70 | response_69,not_flagged,"there are too many to remember specifically, but being as helpful and rational as possible (as well as just listening) with people that need it is a fairly common occurrence",,,,, 71 | response_70,not_flagged,"one of my friends was feeling down, so he came over and talked it out while I listened and gave him some input.",,,,, 72 | response_71,not_flagged,never.,,,,, 73 | response_72,not_flagged,I have tried but am absolutely horrable at it and am way too blunt.,,,,, 74 | response_73,flagged,Ex girlfriend had depression and anxiety. I used to hold her and listen as she told me what was going on,,,,, 75 | response_74,not_flagged,"Always. I don't judge people to much, and can listen well most of the time. So naturally people come to me with their problems.",,,,, 76 | response_75,flagged,My grandmother went through some severe depression shortly after I had some difficulties. Using my personal experience to relate with her and share what I used to get better was helpful to comfort her.,,,,, 77 | response_76,not_flagged,"Now that I've been through it, although i'm not even where I'd like to be, I'm extremely open about sharing my experience with others and helping friends going through similar situations. And PLEASE if you have any other questions about my situation don't hesitate to email me. I'm an open book and excited to see how many people you're going to help.",,,,, 78 | response_77,flagged,when my best friends mom past away from od'ing when he was in grade 5,,,,, 79 | response_78,not_flagged,As a camp counselor I provide stability in kids lives who may have troubled home situations.,,,,, 80 | response_79,flagged,My now girlfriend used to have serious addiction troubles before we started dating and felt as though her addiction defined her as a person. She thought that all people saw when they looked at her was the addiction. I spent many nights with her talking and letting her vent. I was one of the only people supporting her and she felt as though I could help because I had been in her spot.,,,,, 81 | response_80,not_flagged,"The one person I ever talked to it was because we were both going through the same thing. Us talking together helped, it was important to realize you aren't alone",,,,, --------------------------------------------------------------------------------