From 07e7169c1935b29f82a2461af33e21fcb883dee8 Mon Sep 17 00:00:00 2001 From: kumarnik1 <123492959+kumarnik1@users.noreply.github.com> Date: Wed, 10 Apr 2024 06:08:58 -0400 Subject: [PATCH] test cases --- .../data/cleaned_data/test_chat_level.csv | 216 +++++++++--------- 1 file changed, 108 insertions(+), 108 deletions(-) diff --git a/feature_engine/testing/data/cleaned_data/test_chat_level.csv b/feature_engine/testing/data/cleaned_data/test_chat_level.csv index b61ff1ab..5fb17db7 100644 --- a/feature_engine/testing/data/cleaned_data/test_chat_level.csv +++ b/feature_engine/testing/data/cleaned_data/test_chat_level.csv @@ -1,32 +1,32 @@ -conversation_num,speaker_nickname,message,expected_column,expected_value, -1,A,Hello I like fish.,num_words,4, -1,B,This sentence has five words.,num_words,5, -2,A,Hello??,num_words,1, -2,B,Is 4 a word?,num_words,4, -3,A,.,num_words,0, -4,test_A,"HELLO WORLD, THIS IS A TEST. hi HI. hi HI hi HI""",num_all_caps,9, -4,test_B,ONE TWO THREE. four five six. sEvEn EiGhT nInE.,num_all_caps,3, -4,test_A,Check out this [link](https://example.com) and this one http://example.org,num_links,2, -4,test_B,I like google.com and wikipedia.org but not amazon.com,num_links,3, -4,test_A,why don't you read everything at https://www.example.com and https://www.example.org and https://www.example.net and https://www.example.ca and https://www.example.co.uk,num_links,5, +conversation_num,speaker_nickname,message,expected_column,expected_value +1,A,Hello I like fish.,num_words,4 +1,B,This sentence has five words.,num_words,5 +2,A,Hello??,num_words,1 +2,B,Is 4 a word?,num_words,4 +3,A,.,num_words,0 +4,test_A,"HELLO WORLD, THIS IS A TEST. hi HI. hi HI hi HI""",num_all_caps,9 +4,test_B,ONE TWO THREE. four five six. sEvEn EiGhT nInE.,num_all_caps,3 +4,test_A,Check out this [link](https://example.com) and this one http://example.org,num_links,2 +4,test_B,I like google.com and wikipedia.org but not amazon.com,num_links,3 +4,test_A,why don't you read everything at https://www.example.com and https://www.example.org and https://www.example.net and https://www.example.ca and https://www.example.co.uk,num_links,5 4,test_B,"why don't you read everything at - https://www.example.com - https://www.example.org - https://www.example.net - https://www.example.ca -- https://www.example.co.uk",num_links,5, -4,test_A,"Hello u/user1 and u/user2, hi hi hi?",num_reddit_users,2, -4,test_B,I don't like u/user_1_test but I like u/user2Test,num_reddit_users,2, -4,test_A,"This is **bold**, *italics*, and this is not. This is ***bolded and italicized***",num_emphasis,3, -4,test_B,This is **uneven* in terms of *the emphasis**,num_emphasis,2, -4,test_A,* item 1\n* item 2\n- item 3,num_bullet_points,3, +- https://www.example.co.uk",num_links,5 +4,test_A,"Hello u/user1 and u/user2, hi hi hi?",num_reddit_users,2 +4,test_B,I don't like u/user_1_test but I like u/user2Test,num_reddit_users,2 +4,test_A,"This is **bold**, *italics*, and this is not. This is ***bolded and italicized***",num_emphasis,3 +4,test_B,This is **uneven* in terms of *the emphasis**,num_emphasis,2 +4,test_A,* item 1\n* item 2\n- item 3,num_bullet_points,3 4,test_B,"Here are all my arguments: - point 1 - point 2 - point 3 -- point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines",num_bullet_points,4, -4,test_A,1. First\n2. Second\n3. Third,num_numbered_points,3, -4,test_B,This is the first line.\nThis is the second line.\nThis is the third line.,num_line_breaks,3, +- point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines point 4 is super long and takes up multiple lines",num_bullet_points,4 +4,test_A,1. First\n2. Second\n3. Third,num_numbered_points,3 +4,test_B,This is the first line.\nThis is the second line.\nThis is the third line.,num_line_breaks,3 4,test_A,"I have a line @@ -35,95 +35,95 @@ conversation_num,speaker_nickname,message,expected_column,expected_value, here is a new line -here is a third line",num_line_breaks,3, -4,test_B,this is a line with\rA different kind of return value\rUsing carriage return instead of the newline character,num_line_breaks,3, -4,test_A,"""This is a quote."" She said, ""Here's another.""",num_quotes,2, -4,test_B,"""You miss 100% of the shots you don't take"" -- Wayne Gretzky",num_quotes,1, -4,test_A,"""I can't believe you use single quotes to quote people,"" she said. ""Well, he replied, 'sometimes single quotes are useful when you nest quotes inside other quotes,' according to my English teacher"" Then she said: 'okay'",num_quotes,4, -4,test_B,> Quoting someone else\nThis is my reply.,num_block_quote_responses,1, -4,test_A,> Quoting someone else\nThis is my reply.,num_block_quote_responses,1, -4,test_B,>>>> This is a quote but I went overboard with the carat character,num_block_quote_responses,1, -4,test_A,>> This is one where I put too many of the gt's,num_block_quote_responses,1, +here is a third line",num_line_breaks,3 +4,test_B,this is a line with\rA different kind of return value\rUsing carriage return instead of the newline character,num_line_breaks,3 +4,test_A,"""This is a quote."" She said, ""Here's another.""",num_quotes,2 +4,test_B,"""You miss 100% of the shots you don't take"" -- Wayne Gretzky",num_quotes,1 +4,test_A,"""I can't believe you use single quotes to quote people,"" she said. ""Well, he replied, 'sometimes single quotes are useful when you nest quotes inside other quotes,' according to my English teacher"" Then she said: 'okay'",num_quotes,4 +4,test_B,> Quoting someone else\nThis is my reply.,num_block_quote_responses,1 +4,test_A,> Quoting someone else\nThis is my reply.,num_block_quote_responses,1 +4,test_B,>>>> This is a quote but I went overboard with the carat character,num_block_quote_responses,1 +4,test_A,>> This is one where I put too many of the gt's,num_block_quote_responses,1 4,test_B,"> Hello! -Goodbye!",num_block_quote_responses,1, +Goodbye!",num_block_quote_responses,1 4,test_B,"> here I am making a quote I respond to it > I quote again -I respond to that too",num_block_quote_responses,2, -4,test_A,Well... I'm not sure... Maybe...,num_ellipses,3, -4,test_B,hm..what if I only use two periods.............or many periods............,num_ellipses,2, -4,test_B,This is a sentence (with some text in parentheses).,num_parentheses,1, -4,test_A,"""Sure,"" I said confidently (thiking to myself: no way!) This was definitely (not) one of my best moments.",num_parentheses,2, -4,test_B,(((((these parentheses are not properly closed.),num_parentheses,1, -4,test_B,((there are multiple parentheses here)),num_parentheses,2, -4,test_A,((1+(1+3+4)^2)+7+(9+8)),num_parentheses,4, -5,test1,I think that I think that I think,certainty_rocklage,4.5, -5,test2,I am a little confused,certainty_rocklage,2.47, -5,test2,I don't really know the answer,certainty_rocklage,1.33, -5,test3,I am sure that this is correct,certainty_rocklage,8.02, -5,test1,I am fairly certain in my response,certainty_rocklage,8.28, -5,test2,This is without a doubt the best movie I have ever seen,certainty_rocklage,4.5, -5,test2,I am not sure about how to how to approximately handle this,certainty_rocklage,2.69, -5,test3,I believe that he is guilty but I am not very certain,certainty_rocklage,6.56, -5,test1,I an open to you changing my mind on this issue,certainty_rocklage,4.5, -5,test2,I don't think the guy is the a$$hole. Thoughts?,certainty_rocklage,5.44, -5,test2,So who thinks the guy is an ass for asking his mother in law to learn english,certainty_rocklage,4.5, -5,test3,"I think that this person is not an asshole because, according to him, he was very polite while approaching the issue",certainty_rocklage,6.037, -5,test1,I can see how the family is upset because they feel the mother was disrespected but I can also understand the guy's feelings. Why should he have to work as interpreter for his mother in law?,certainty_rocklage,4.5, -5,test2,"Yes, I think his feeling makes sense to me to. Who doesn't want to be independent.",certainty_rocklage,4.89, -5,test2,I was conflicted because I could understand his frustration however I feel he should have maybe discussed strategies with how to approach the mother in law with his wife first.,certainty_rocklage,4.684, -5,test3,His MIL has been here for 8 years. You would think she'd pick up some English by now.,certainty_rocklage,4.5, -5,test1,I think he had every right to want to help his mother in law,certainty_rocklage,4.28, -5,test2,I also agree with culturedCow,certainty_rocklage,4.5, -5,test2,"I don't think he's an asshole. I think his request is reasonable. If you go to live in a foreign country, you should learn the language.",certainty_rocklage,5.125, -5,test3,"I think the guy is an asshole because for all his talk about how easy it is to use resources to learn a language, he didn't take the time to research WHY some people do not.",certainty_rocklage,5.505, -5,test1,I think he also tried to utilize other resources such as language learning apps to help her learn,certainty_rocklage,4.28, -5,test2,"I think also he needs to understand that language learning is not the same for everyone, not everyone has the same capacity to learn new languages quickly.",certainty_rocklage,6.09, -5,test2,"Maybe she does have a problem with learning languages, but she could at least try.",certainty_rocklage,3.79, -5,test3,After the edit he done it made it sound like he really loves his family,certainty_rocklage,6.175, -5,test1,"I don't think the guy is wrong in asking her to learn more english being that she lives in America, but he has to understand she is older and may not have the patience or capacity to learn a lot of english.",certainty_rocklage,5.472, -5,test2,"Learning a second language is easiest when you're a child for a reason. Your brain is wired differently then, which makes it easier.",certainty_rocklage,5.4, -5,test2,I think he tried to help her.Ê He gave her resources to use and she apparently didn't use them.,certainty_rocklage,4.32, -1,A,hello,Hello,1, -1,B,So how should we answer this,Token_count,6, -1,A,We can start here. What is the question?,YesNo_Questions,0, -1,B,I am not sure. Where is the rest of our team?,WH_Questions,1, -1,B,"Well please help me figure this out, I really want to do well on this please okay",Please,2, -2,C,Okay bro lets split it 50/50,Impersonal_Pronoun,1, -2,D,Maybe but how about 60/40? I doubt its fair otherwise,Hedges,2, -2,C,Seems fair,Hedges,1, -2,E,I see what youre thinking but I disagree,Acknowledgement,1, -2,E,We get only one chance so we should understand how to split it,Acknowledgement,2, -2,D,"I just don't agree, I'm making the 60/40 split",Adverb_Limiter,1, -3,F,greetings everybody. should we use the first option?,Hello,1, -3,G,I think we should try something else,1st_person_start,1, -3,F,Ok whatever. You should leave the team then,2nd_person_start,0, -4,H,Honestly thank you so so much,factuality,1, -4,H,What's the plan?,direct_question,1, -4,I,That is the dumbest idea I've heard; youre actually dumb af,hasnegative,1, -4,H,What's ur problem here?,hasnegative,1, -5,J,Pleasure and an honor to meet you all,haspositive,1, -5,K,We should try that next,haspositive,0, -5,J,Could you please explain why? I don't really understand why you are thinking that,subjunctive,1, -5,K,Sorry sorry I didn't mean to,apologizing,1, -6,L,I don't really want to work with you all but let's get this over with,Impersonal_Pronoun,1, -6,J,Fine by me,Affirmation,0, -6,K,Ok so which part should we do first? the first or second?,YesNo_Questions,1, -7,L,Um please don't do that?,please_start,1, -7,L,I don't think that will work,hashedge,1, -7,M,I'm exhuasted rn,hasnegative,0, -7,M,i don't really care please just finish this up,haspositive,0, -7,N,Please don't do that?,Please,1, -7,N,I don't think that will work,Hedges,0, -7,O,I'm exhuasted rn,Negative_Emotion,0, -7,O,i don't really care please just finish this up,Positive_Emotion,1, -8,P,i appreciate all this from you,Gratitude,1, -8,P,"well we should start rn, our part is long",1st_person_pl,1, -8,Q,ok forgive me for this error but,apologizing,1, -8,Q,you have to redo the whole thing,2nd_person,0, -8,R,ok so who will work with me? where should we begin?,direct_question,0, -8,S,i appreciate all this from you,Gratitude,1, -8,S,"well we should start rn, our part is long",First_Person_Plural,1, -8,T,ok forgive us for this error but,Apology,0, -8,T,I think you have to redo the whole thing,Second_Person,1, -8,U,ok so who will work with me? where should we begin?,WH_Questions,2, \ No newline at end of file +I respond to that too",num_block_quote_responses,2 +4,test_A,Well... I'm not sure... Maybe...,num_ellipses,3 +4,test_B,hm..what if I only use two periods.............or many periods............,num_ellipses,2 +4,test_B,This is a sentence (with some text in parentheses).,num_parentheses,1 +4,test_A,"""Sure,"" I said confidently (thiking to myself: no way!) This was definitely (not) one of my best moments.",num_parentheses,2 +4,test_B,(((((these parentheses are not properly closed.),num_parentheses,1 +4,test_B,((there are multiple parentheses here)),num_parentheses,2 +4,test_A,((1+(1+3+4)^2)+7+(9+8)),num_parentheses,4 +5,test1,I think that I think that I think,certainty_rocklage,4.5 +5,test2,I am a little confused,certainty_rocklage,2.47 +5,test2,I don't really know the answer,certainty_rocklage,1.33 +5,test3,I am sure that this is correct,certainty_rocklage,8.02 +5,test1,I am fairly certain in my response,certainty_rocklage,8.28 +5,test2,This is without a doubt the best movie I have ever seen,certainty_rocklage,4.5 +5,test2,I am not sure about how to how to approximately handle this,certainty_rocklage,2.69 +5,test3,I believe that he is guilty but I am not very certain,certainty_rocklage,6.56 +5,test1,I an open to you changing my mind on this issue,certainty_rocklage,4.5 +5,test2,I don't think the guy is the a$$hole. Thoughts?,certainty_rocklage,5.44 +5,test2,So who thinks the guy is an ass for asking his mother in law to learn english,certainty_rocklage,4.5 +5,test3,"I think that this person is not an asshole because, according to him, he was very polite while approaching the issue",certainty_rocklage,6.037 +5,test1,I can see how the family is upset because they feel the mother was disrespected but I can also understand the guy's feelings. Why should he have to work as interpreter for his mother in law?,certainty_rocklage,4.5 +5,test2,"Yes, I think his feeling makes sense to me to. Who doesn't want to be independent.",certainty_rocklage,4.89 +5,test2,I was conflicted because I could understand his frustration however I feel he should have maybe discussed strategies with how to approach the mother in law with his wife first.,certainty_rocklage,4.684 +5,test3,His MIL has been here for 8 years. You would think she'd pick up some English by now.,certainty_rocklage,4.5 +5,test1,I think he had every right to want to help his mother in law,certainty_rocklage,4.28 +5,test2,I also agree with culturedCow,certainty_rocklage,4.5 +5,test2,"I don't think he's an asshole. I think his request is reasonable. If you go to live in a foreign country, you should learn the language.",certainty_rocklage,5.125 +5,test3,"I think the guy is an asshole because for all his talk about how easy it is to use resources to learn a language, he didn't take the time to research WHY some people do not.",certainty_rocklage,5.505 +5,test1,I think he also tried to utilize other resources such as language learning apps to help her learn,certainty_rocklage,4.28 +5,test2,"I think also he needs to understand that language learning is not the same for everyone, not everyone has the same capacity to learn new languages quickly.",certainty_rocklage,6.09 +5,test2,"Maybe she does have a problem with learning languages, but she could at least try.",certainty_rocklage,3.79 +5,test3,After the edit he done it made it sound like he really loves his family,certainty_rocklage,6.175 +5,test1,"I don't think the guy is wrong in asking her to learn more english being that she lives in America, but he has to understand she is older and may not have the patience or capacity to learn a lot of english.",certainty_rocklage,5.472 +5,test2,"Learning a second language is easiest when you're a child for a reason. Your brain is wired differently then, which makes it easier.",certainty_rocklage,5.4 +5,test2,I think he tried to help her.Ê He gave her resources to use and she apparently didn't use them.,certainty_rocklage,4.32 +1,A,hello,Hello,1 +1,B,So how should we answer this,Token_count,6 +1,A,We can start here. What is the question?,YesNo_Questions,0 +1,B,I am not sure. Where is the rest of our team?,WH_Questions,1 +1,B,"Well please help me figure this out, I really want to do well on this please okay",Please,2 +2,C,Okay bro lets split it 50/50,Impersonal_Pronoun,0 +2,D,Maybe but how about 60/40? I doubt its fair otherwise,Hedges,2 +2,C,Seems possible,Hedges,2 +2,E,I see what youre thinking but I disagree,Acknowledgement,1 +2,E,We get only one chance so we should understand how to split it,Acknowledgement,2 +2,D,"I just don't agree, I'm making the 60/40 split",Adverb_Limiter,1 +3,F,greetings everybody. should we use the first option?,Hello,1 +3,G,I think we should try something else,1st_person_start,1 +3,F,Ok whatever. You should leave the team then,2nd_person_start,1 +4,H,Honestly thank you so so much,factuality,1 +4,H,What's the plan?,direct_question,1 +4,I,That is the dumbest idea I've heard; youre actually dumb af,hasnegative,1 +4,H,What's ur problem here?,hasnegative,1 +5,J,Pleasure and an honor to meet you all,haspositive,1 +5,K,We should try that next,haspositive,0 +5,J,Could you please explain why? I don't really understand why you are thinking that,subjunctive,1 +5,K,Sorry sorry I didn't mean to,apologizing,1 +6,L,I don't really want to work with you all but let's get this over with,Impersonal_Pronoun,1 +6,J,Fine by me,Affirmation,0 +6,K,Ok so which part should we do first? the first or second?,YesNo_Questions,1 +7,L,Um please don't do that?,please_start,1 +7,L,I don't think that will work,hashedge,1 +7,M,I'm exhuasted rn,hasnegative,0 +7,M,i don't really care please just finish this up,haspositive,0 +7,N,Please don't do that?,Please,1 +7,N,I don't think that will work,Hedges,0 +7,O,I'm exhuasted rn,Negative_Emotion,0 +7,O,i don't really care please just finish this up,Positive_Emotion,1 +8,P,i appreciate all this from you,Gratitude,1 +8,P,"well we should start rn, our part is long",1st_person_pl,1 +8,Q,ok forgive me for this error but,apologizing,1 +8,Q,you have to redo the whole thing,2nd_person,0 +8,R,ok so who will work with me? where should we begin?,direct_question,0 +8,S,i appreciate all this from you,Gratitude,0 +8,S,"well we should start rn, our part is long",First_Person_Plural,1 +8,T,ok forgive us for this error but,Apology,0 +8,T,I think you have to redo the whole thing,Second_Person,1 +8,U,ok so who will work with me? where should we begin?,WH_Questions,2 \ No newline at end of file