label
class label
0
2
sentence1
stringlengths
3
171
sentence2
stringlengths
9
171
triple1
sequence
triple2
sequence
dtype
stringclasses
10 values
id
stringlengths
20
25
original_label
stringclasses
3 values
2contradiction
since my dad is a mechanic we had mostly car books .
my dad is a priest .
[ "my father", "has_profession", "mechanic" ]
[ "my father", "has_profession", "priest" ]
e2swap_up
dialogue_nli_train_298308
negative
2contradiction
my locks are chestnut .
i am blonde .
[ "i", "physical_attribute", "brunette" ]
[ "i", "physical_attribute", "blonde" ]
e2swap_pp
dialogue_nli_train_217248
negative
0entailment
i am only 22 so i would not know .
i am twenty two years old .
[ "i", "has_age", "22" ]
[ "i", "has_age", "22" ]
matchingtriple_up
dialogue_nli_train_83252
positive
0entailment
i am so sorry ! my parents died as well . they were very unhealthy so i am vegan .
i am a vegan .
[ "i", "other", "vegan" ]
[ "i", "other", "vegan" ]
matchingtriple_up
dialogue_nli_train_68154
positive
0entailment
i was a college athlete .
i am athletic .
[ "i", "misc_attribute", "athletic" ]
[ "i", "misc_attribute", "athletic" ]
matchingtriple_pp
dialogue_nli_train_2542
positive
1neutral
definitely ! ribeye is my favorite .
i used to be enlisted in the army .
[ "<none>", "<none>", "<none>" ]
[ "i", "previous_profession", "army" ]
miscutterance_up
dialogue_nli_train_166990
neutral
0entailment
i really do not like meat tho .
i don t like to eat meat .
[ "i", "dislike", "meat" ]
[ "i", "dislike", "meat" ]
matchingtriple_up
dialogue_nli_train_80566
positive
1neutral
we do not , our apartment is way too small for a pet .
i live in the city .
[ "<none>", "<none>", "<none>" ]
[ "i", "live_in_general", "city" ]
miscutterance_up
dialogue_nli_train_192399
neutral
2contradiction
i work as a tech .
i work as a receptionist at a lawyers office .
[ "i", "has_profession", "teacher" ]
[ "i", "has_profession", "receptionist" ]
e2swap_pp
dialogue_nli_train_230641
negative
2contradiction
that is cute . my girlfriend is pregnant , we do not have any pets .
my cat died .
[ "i", "not_have", "pet" ]
[ "my", "have_pet", "cat" ]
rswap_up
dialogue_nli_train_225024
negative
2contradiction
oh , i like to read to my 2 cats . i check out books for them too .
i hate cats .
[ "i", "like_animal", "cat" ]
[ "i", "dislike", "cat" ]
rswap_up
dialogue_nli_train_208838
negative
2contradiction
i work at a daycare .
i work for a government agency .
[ "i", "employed_by_general", "daycare" ]
[ "i", "employed_by_general", "government" ]
e2swap_pp
dialogue_nli_train_230615
negative
0entailment
well i am albert thanks for asking and art is fun .
my name is albert .
[ "i", "other", "albert" ]
[ "i", "other", "albert" ]
matchingtriple_up
dialogue_nli_train_60166
positive
0entailment
i play drums in a band .
i know how to play the guitar .
[ "i", "has_ability", "play instrument" ]
[ "i", "has_ability", "play instrument" ]
matchingtriple_pp
dialogue_nli_train_53516
positive
2contradiction
traveling , i want to learning many languages .
i never go traveling with anyone .
[ "i", "like_activity", "traveling" ]
[ "i", "dislike", "traveling" ]
rswap_up
dialogue_nli_train_209568
negative
1neutral
i had my first grandchild when i was fourty four .
i have a cat named speckles .
[ "i", "have_family", "grandchild" ]
[ "i", "have_pet", "cat" ]
rswap_up
dialogue_nli_train_131110
neutral
1neutral
some loveable mutts . i love all dogs , though .
my favorite band is worn .
[ "i", "like_animal", "dog" ]
[ "i", "favorite_music_artist", "worn" ]
personapairing_up
dialogue_nli_train_126320
neutral
1neutral
i have a dog named george .
i have three great dogs .
[ "i", "have_pet", "dog" ]
[ "i", "have_pet", "3 dog" ]
rswap_up
dialogue_nli_train_136260
neutral
1neutral
that is a pet peeve of mine , one of the reasons i prefer cats .
i have gotten sick at the start of everyday for a long time now .
[ "<none>", "<none>", "<none>" ]
[ "i", "physical_attribute", "sick" ]
miscutterance_up
dialogue_nli_train_169721
neutral
0entailment
i play guitar in my spare time .
i play the violin .
[ "i", "has_ability", "play instrument" ]
[ "i", "has_ability", "play instrument" ]
matchingtriple_pp
dialogue_nli_train_11387
positive
1neutral
superman is my favorite hero .
my name is todd .
[ "i", "favorite", "superman" ]
[ "i", "other", "<blank>" ]
personapairing_up
dialogue_nli_train_120929
neutral
1neutral
cooking is what i love .
i like to fish .
[ "i", "like_activity", "cooking" ]
[ "i", "<blank>", "<blank>" ]
personapairing_up
dialogue_nli_train_125985
neutral
1neutral
free . haha . that is cute . i live in the country . i am pregnant .
i like children .
[ "<none>", "<none>", "<none>" ]
[ "i", "like_general", "kids" ]
miscutterance_up
dialogue_nli_train_151163
neutral
1neutral
i have two older brothers .
i have a house in the midwest .
[ "i", "have_sibling", "2 brother" ]
[ "i", "have", "house" ]
rswap_up
dialogue_nli_train_143756
neutral
1neutral
they are not for the faint of heart . beaches are nice for reading .
my hubby rights books and we have a pair of twin children .
[ "i", "like_activity", "reading" ]
[ "we", "have_chidren", "2 twins" ]
personapairing_up
dialogue_nli_train_128867
neutral
0entailment
i am trying not to eat meat anymore .
i do not eat meat .
[ "i", "other", "vegetarian" ]
[ "i", "other", "vegetarian" ]
matchingtriple_pp
dialogue_nli_train_52648
positive
2contradiction
i work in seattle for public relations .
i am a professional freight driver .
[ "i", "has_profession", "public relations" ]
[ "i", "has_profession", "driver" ]
e2swap_up
dialogue_nli_train_287021
negative
0entailment
never . i have been playing since i was four . it pays more than lifting weights .
i have played since i was 4 years old .
[ "i", "has_hobby", "play" ]
[ "i", "has_hobby", "play" ]
matchingtriple_up
dialogue_nli_train_96563
positive
2contradiction
i bet . i am a waitress and the long hours can be tough .
i work as a librarian .
[ "i", "has_profession", "waitress" ]
[ "i", "has_profession", "librarian" ]
e2swap_up
dialogue_nli_train_270965
negative
0entailment
i love skiing too ! i love winter and snow .
winter is my favorite season .
[ "i", "favorite_season", "winter" ]
[ "i", "favorite_season", "winter" ]
matchingtriple_up
dialogue_nli_train_89188
positive
2contradiction
yes , i love watching baseball and basketball . i do not like running though .
i enjoy running .
[ "i", "dislike", "running" ]
[ "i", "like_sports", "running" ]
rswap_up
dialogue_nli_train_207274
negative
1neutral
you can brush my hair , call me nancy if you care .
i am a girl .
[ "i", "other", "nancy" ]
[ "i", "gender", "female" ]
personapairing_up
dialogue_nli_train_118307
neutral
0entailment
our kids are 14 and 12 years old .
i have 2 children .
[ "i", "have_chidren", "2 children" ]
[ "i", "have_chidren", "2 children" ]
matchingtriple_pp
dialogue_nli_train_18207
positive
1neutral
i have never had that flavor . i would not mind going to jamaica .
i like iced snacks .
[ "<none>", "<none>", "<none>" ]
[ "i", "like_food", "iced snacks" ]
miscutterance_up
dialogue_nli_train_168147
neutral
0entailment
i love reading .
i read three books a week .
[ "i", "like_activity", "reading" ]
[ "i", "like_activity", "reading" ]
matchingtriple_pp
dialogue_nli_train_25810
positive
0entailment
i am attending college to work in a hospital .
i am in college now and want to be a teacher .
[ "i", "attend_school", "university" ]
[ "i", "attend_school", "university" ]
matchingtriple_pp
dialogue_nli_train_16175
positive
1neutral
hello there i just got back from a great vegan bistro how are u .
my favorite flower is a rose .
[ "i", "other", "vegan" ]
[ "i", "favorite", "rose" ]
personapairing_up
dialogue_nli_train_115863
neutral
1neutral
i do too . i wish i had done more .
i am dying .
[ "<none>", "<none>", "<none>" ]
[ "i", "other", "am dying" ]
miscutterance_up
dialogue_nli_train_191295
neutral
1neutral
i have a house in the suburbs .
i have a brother but we don t talk much yet .
[ "i", "own", "house" ]
[ "i", "have_sibling", "brother" ]
rswap_up
dialogue_nli_train_138604
neutral
1neutral
no . just for fun . and my 2 daughters say the same thing .
my husband works at a telecom .
[ "<none>", "<none>", "<none>" ]
[ "my husband", "employed_by_company", "telecom" ]
miscutterance_up
dialogue_nli_train_181365
neutral
0entailment
i think i will be famous one day .
i am very ambitious .
[ "i", "misc_attribute", "ambitious" ]
[ "i", "misc_attribute", "ambitious" ]
matchingtriple_pp
dialogue_nli_train_43731
positive
0entailment
i am a bit of a workaholic , my job is my true love and also animals !
i love my job .
[ "i", "like_general", "my job" ]
[ "i", "like_general", "my job" ]
matchingtriple_up
dialogue_nli_train_63745
positive
0entailment
me too ! i get to hang out with my friends and family then .
i like spending time with my friends and family .
[ "i", "like_general", "time with friends" ]
[ "i", "like_general", "time with friends" ]
matchingtriple_up
dialogue_nli_train_72256
positive
0entailment
yeah and own a chevy duramax my kind of truck .
my favorite truck is a chevy duramax .
[ "i", "favorite", "chevy duramax" ]
[ "i", "favorite", "chevy duramax" ]
matchingtriple_up
dialogue_nli_train_96356
positive
1neutral
i am a typical teenager .
i like to be outside , but also to peruse books .
[ "i", "has_age", "teenager" ]
[ "i", "like_general", "going outside" ]
personapairing_pp
dialogue_nli_train_101262
neutral
2contradiction
i take care of animals for my job .
i am a pilot for southwest .
[ "i", "has_profession", "veterinarian" ]
[ "i", "has_profession", "pilot" ]
e2swap_pp
dialogue_nli_train_254912
negative
2contradiction
i am a teacher i teach 1st grade .
i left my small town to work in construction trades .
[ "i", "has_profession", "teacher" ]
[ "i", "has_profession", "construction" ]
e2swap_up
dialogue_nli_train_264454
negative
1neutral
very cool . how old are you ?
i am an older person .
[ "<none>", "<none>", "<none>" ]
[ "i", "has_age", "older" ]
miscutterance_up
dialogue_nli_train_189528
neutral
1neutral
i love to read books . i spend a lot of my time reading .
i do not own a television .
[ "<none>", "<none>", "<none>" ]
[ "i", "own", "0 television" ]
miscutterance_up
dialogue_nli_train_191063
neutral
0entailment
i like to wear nice clothes .
i enjoy dressing up to go out clubbing .
[ "i", "like_activity", "dressing up" ]
[ "i", "like_activity", "dressing up" ]
matchingtriple_pp
dialogue_nli_train_32482
positive
0entailment
enjoy them a lot . but not as much as my little pony !
i draw all of my friends as my little pony characters .
[ "i", "like_animal", "butterfly" ]
[ "i", "like_animal", "butterfly" ]
matchingtriple_up
dialogue_nli_train_70839
positive
2contradiction
yeah mine is a little yorkie . small dogs suit me because i am short .
i am in the 99th height percentile .
[ "i", "physical_attribute", "short" ]
[ "i", "physical_attribute", "tall" ]
e2swap_up
dialogue_nli_train_223947
negative
1neutral
i am taking a calligraphy class this weekend to learn cursive .
i would like to stay cold .
[ "<none>", "<none>", "<none>" ]
[ "i", "want", "stay cold" ]
miscutterance_up
dialogue_nli_train_165199
neutral
0entailment
i keep many kittens .
i have a cat named felix and a small terror names emmy .
[ "i", "have_pet", "cat" ]
[ "i", "have_pet", "cat" ]
matchingtriple_pp
dialogue_nli_train_15716
positive
2contradiction
i want to be a doctor .
i am studying to be a dentist .
[ "i", "want_job", "doctor" ]
[ "i", "want_job", "dentist" ]
e2swap_pp
dialogue_nli_train_236609
negative
2contradiction
no , he likes country music . my 2 nephews like rap , .
no , he likes country music . my 10 nephews like rap , .
[ "i", "have_family", "2 nephew" ]
[ "i", "have_family", "10 nephew" ]
numerics
dialogue_nli_train_300560
negative
0entailment
sure i am a factory worker , i play guitar , i am married with two children .
i have a wife and two kids .
[ "i", "marital_status", "married" ]
[ "i", "marital_status", "married" ]
matchingtriple_up
dialogue_nli_train_74147
positive
0entailment
i love to take my children on nature walks .
i sometimes go for a stroll outside .
[ "i", "like_activity", "walking" ]
[ "i", "like_activity", "walking" ]
matchingtriple_pp
dialogue_nli_train_54342
positive
2contradiction
i work at the local hospital . how about you ?
my job is now at the library .
[ "i", "employed_by_general", "hospital" ]
[ "i", "employed_by_general", "library" ]
e2swap_up
dialogue_nli_train_289807
negative
1neutral
no , we mostly eat at restaurants .
my mom works in a library with books .
[ "<none>", "<none>", "<none>" ]
[ "my mother", "has_profession", "librarian" ]
miscutterance_up
dialogue_nli_train_182316
neutral
1neutral
hello . care for a chat ?
i love the heat and pool time .
[ "<none>", "<none>", "<none>" ]
[ "i", "like_general", "heat" ]
miscutterance_up
dialogue_nli_train_153774
neutral
1neutral
i ride my bike to vote . i vote for everything !
i love foreign vehicles .
[ "<none>", "<none>", "<none>" ]
[ "i", "like_general", "foreign vehicles" ]
miscutterance_up
dialogue_nli_train_184364
neutral
0entailment
not yet . but i have a koi pond in my garden with a pet koi named spot .
i have a pond at home with a pet koi named spot .
[ "i", "have_pet", "koi" ]
[ "i", "have_pet", "koi" ]
matchingtriple_up
dialogue_nli_train_86328
positive
1neutral
my cats like to be read to .
we have 4 children and 2 dogs .
[ "i", "have_pet", "cat" ]
[ "i", "have_chidren", "4 children" ]
rswap_up
dialogue_nli_train_147253
neutral
0entailment
that is awesome . yeah countrys perfect for traveling the country .
i move around the world a lot .
[ "i", "has_hobby", "travel" ]
[ "i", "has_hobby", "travel" ]
matchingtriple_up
dialogue_nli_train_75777
positive
1neutral
i love all of my beautiful children .
i have 4 dogs and i spend all my time with them .
[ "i", "have_chidren", "children" ]
[ "i", "have_pet", "dog" ]
rswap_up
dialogue_nli_train_135220
neutral
2contradiction
i just took a drive with my wife , which i enjoy . how about you ?
i am engaged .
[ "i", "marital_status", "married" ]
[ "i", "marital_status", "engaged" ]
e2swap_up
dialogue_nli_train_277407
negative
0entailment
i go to college part time .
i am recent college graduate looking for a job in marketing .
[ "i", "attend_school", "university" ]
[ "i", "attend_school", "university" ]
matchingtriple_pp
dialogue_nli_train_52275
positive
1neutral
hey , how are ya doing today ?
i get distracted easily .
[ "<none>", "<none>", "<none>" ]
[ "i", "school_status", "student" ]
miscutterance_up
dialogue_nli_train_170263
neutral
0entailment
i am the mother of a boy .
i am a girl .
[ "i", "gender", "female" ]
[ "i", "gender", "female" ]
matchingtriple_pp
dialogue_nli_train_56728
positive
1neutral
that is a good point . if i went to spain i would still look for some pizza .
my idol is theirry henry .
[ "my", "favorite_food", "pizza" ]
[ "i", "favorite", "theory henry" ]
personapairing_up
dialogue_nli_train_117604
neutral
0entailment
making cookies is fun .
i like to make bagels .
[ "i", "like_activity", "baking" ]
[ "i", "like_activity", "baking" ]
matchingtriple_pp
dialogue_nli_train_24367
positive
1neutral
my favorite band is imagine dragons .
i am from texas .
[ "i", "favorite_music_artist", "imagine dragons" ]
[ "i", "place_origin", "texas" ]
personapairing_pp
dialogue_nli_train_105143
neutral
0entailment
i am sorry to hear that my cat george is old too .
i have a cat named george .
[ "i", "have_pet", "cat" ]
[ "i", "have_pet", "cat" ]
matchingtriple_up
dialogue_nli_train_86332
positive
2contradiction
my ultimate goal would be calling a ball game .
i want to be a famous actor .
[ "i", "want_job", "commentator" ]
[ "i", "want_job", "actor" ]
e2swap_pp
dialogue_nli_train_240162
negative
1neutral
lol i was raised a buddhist so cooking is not really my thing either .
i am from seattle .
[ "<none>", "<none>", "<none>" ]
[ "i", "place_origin", "seattle" ]
miscutterance_up
dialogue_nli_train_186801
neutral
1neutral
i have an 18 year old son .
i have one older sister named mary .
[ "i", "have_chidren", "1 son" ]
[ "i", "have_sibling", "1 sister" ]
rswap_up
dialogue_nli_train_146510
neutral
1neutral
i run track and field when i find time . being an athlete and all .
the name of my team is the baltimore ravens .
[ "i", "has_profession", "athlete" ]
[ "i", "like_general", "baltimore ravens" ]
personapairing_up
dialogue_nli_train_127235
neutral
2contradiction
my roommate also drinks beer which i do not like at all .
i swallow a lot of brews .
[ "i", "dislike", "beer" ]
[ "i", "like_drink", "beer" ]
rswap_up
dialogue_nli_train_214696
negative
0entailment
i get good grades in school .
i begin my last schooling session soon .
[ "i", "school_status", "student" ]
[ "i", "school_status", "student" ]
matchingtriple_pp
dialogue_nli_train_42312
positive
1neutral
i hate sweet potatoes though haha .
i am a weightlifter .
[ "i", "dislike", "sweet potatoes" ]
[ "i", "has_profession", "athlete" ]
personapairing_up
dialogue_nli_train_115310
neutral
0entailment
i sell clothing on facebook .
until then i will make 215 an hour .
[ "i", "job_status", "employed" ]
[ "i", "job_status", "employed" ]
matchingtriple_pp
dialogue_nli_train_15597
positive
0entailment
i am a cat owner .
i use to own 6 cats .
[ "i", "have_pet", "cat" ]
[ "i", "have_pet", "cat" ]
matchingtriple_pp
dialogue_nli_train_19751
positive
1neutral
i am currently a college student what about you ?
i like to shop at goodwill .
[ "i", "school_status", "student" ]
[ "i", "like_activity", "shopping" ]
personapairing_up
dialogue_nli_train_115591
neutral
2contradiction
i am a musician .
i work as a trauma surgeon .
[ "i", "has_profession", "musician" ]
[ "i", "has_profession", "surgeon" ]
e2swap_pp
dialogue_nli_train_256539
negative
0entailment
i get distracted easily .
i just started college .
[ "i", "school_status", "student" ]
[ "i", "school_status", "student" ]
matchingtriple_pp
dialogue_nli_train_12632
positive
1neutral
i like to spend a lot of my free time with my pet .
i like to exercise before work .
[ "i", "like_animal", "pet" ]
[ "i", "like_activity", "working out" ]
personapairing_pp
dialogue_nli_train_103299
neutral
2contradiction
and you could travel listening to music . i love all genres except country .
i like to listen to country music .
[ "i", "dislike", "country" ]
[ "i", "like_music", "country" ]
rswap_up
dialogue_nli_train_212781
negative
2contradiction
i like my job of 7 years , because i can listen to country music .
i am open to anything besides the hillbilly stuff .
[ "i", "like_music", "country" ]
[ "i", "dislike", "country" ]
rswap_up
dialogue_nli_train_209286
negative
0entailment
i also love the game magic the gathering card game .
i enjoy magic the gathering , it is a card game .
[ "i", "like_activity", "card game" ]
[ "i", "like_activity", "card game" ]
matchingtriple_up
dialogue_nli_train_97867
positive
1neutral
bagels are my secret actual favorite . do you work ?
my favorite breakfast is pancakes .
[ "<none>", "<none>", "<none>" ]
[ "i", "favorite", "pancakes" ]
miscutterance_up
dialogue_nli_train_198292
neutral
0entailment
i love going to walt disney world every year .
i travel every year to disney world .
[ "i", "favorite_place", "disney world" ]
[ "i", "favorite_place", "disney world" ]
matchingtriple_up
dialogue_nli_train_96079
positive
0entailment
i am married and have three kids .
i married my highschool sweetheart .
[ "i", "marital_status", "married" ]
[ "i", "marital_status", "married" ]
matchingtriple_pp
dialogue_nli_train_36919
positive
2contradiction
travel , look at cars , and green things .
i do not travel .
[ "i", "like_activity", "travel" ]
[ "i", "dislike", "travel" ]
rswap_up
dialogue_nli_train_210444
negative
2contradiction
i would like to be a journalist one day .
i want to be an artist .
[ "i", "want_job", "journalist" ]
[ "i", "want_job", "artist" ]
e2swap_pp
dialogue_nli_train_245103
negative
0entailment
whats your favorite tv show ? mine silicon valley .
my favorite tv show is silicon valley .
[ "i", "favorite_show", "silicon valley" ]
[ "i", "favorite_show", "silicon valley" ]
matchingtriple_up
dialogue_nli_train_85592
positive
0entailment
all of my friends here in georgia play the multiplayer for that all the time .
i am a georgia resident .
[ "i", "live_in_citystatecountry", "georgia" ]
[ "i", "live_in_citystatecountry", "georgia" ]
matchingtriple_up
dialogue_nli_train_80104
positive
0entailment
i m a vegan .
i have been a vegan since i was 5 .
[ "i", "other", "vegan" ]
[ "i", "other", "vegan" ]
matchingtriple_pp
dialogue_nli_train_29127
positive
1neutral
since you are 4 , do you like to dance .
i like to work with kids .
[ "<none>", "<none>", "<none>" ]
[ "i", "like_activity", "working with kids" ]
miscutterance_up
dialogue_nli_train_167365
neutral
0entailment
i became unemployed from the bank recently .
i am unemployed and living off a trust fund .
[ "i", "job_status", "unemployed" ]
[ "i", "job_status", "unemployed" ]
matchingtriple_pp
dialogue_nli_train_13542
positive
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Overview

Original dataset available here.

Dataset curation

Original label column is renamed original_label. The original classes are renamed as follows

{"positive": "entailment", "negative": "contradiction", "neutral": "neutral"})

and encoded with the following mapping

{"entailment": 0, "neutral": 1, "contradiction": 2}

and stored in the newly created column label.

The following splits and the corresponding columns are present in the original files

train {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
dev {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
test {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
verified_test {'dtype', 'annotation3', 'sentence1', 'sentence2', 'annotation1', 'annotation2', 'original_label', 'label', 'triple2', 'triple1'}
extra_test {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
extra_dev {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
extra_train {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
valid_havenot {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
valid_attributes {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}
valid_likedislike {'dtype', 'id', 'sentence1', 'sentence2', 'original_label', 'label', 'triple2', 'triple1'}

Note that I only keep the common columns, which means that I drop "annotation{1, 2, 3}" from verified_test. Note that there are some splits with the same instances, as found by matching on "original_label", "sentence1", "sentence2".

Code to create dataset

import pandas as pd
from pathlib import Path
import json
from datasets import Features, Value, ClassLabel, Dataset, DatasetDict, Sequence


# load data
ds = {}
for path in Path(".").rglob("<path to folder>/*.jsonl"):
    print(path, flush=True)
    with path.open("r") as fl:
        data = fl.read()
    try:
        d = json.loads(data, encoding="utf-8")
    except json.JSONDecodeError as error:
        print(error)
    
    df = pd.DataFrame(d)

    # encode labels
    df["original_label"] = df["label"]
    df["label"] = df["label"].map({"positive": "entailment", "negative": "contradiction", "neutral": "neutral"})
    df["label"] = df["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})

    ds[path.name.split(".")[0]] = df
    
    
# prettify names of data splits
datasets = {
    k.replace("dialogue_nli_", "").replace("uu_", "").lower(): v
    for k, v in ds.items()
}
datasets.keys()
#> dict_keys(['train', 'dev', 'test', 'verified_test', 'extra_test', 'extra_dev', 'extra_train', 'valid_havenot', 'valid_attributes', 'valid_likedislike'])


# cast to datasets using only common columns
features = Features({
    "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
    "sentence1": Value(dtype="string", id=None),
    "sentence2": Value(dtype="string", id=None),
    "triple1": Sequence(feature=Value(dtype="string", id=None), length=3),
    "triple2": Sequence(feature=Value(dtype="string", id=None), length=3),
    "dtype": Value(dtype="string", id=None),
    "id": Value(dtype="string", id=None),
    "original_label": Value(dtype="string", id=None),
})

ds = {}
for name, df in datasets.items():
    if "id" not in df.columns:
        df["id"] = ""
    ds[name] = Dataset.from_pandas(df.loc[:, list(features.keys())], features=features)
ds = DatasetDict(ds)
ds.push_to_hub("dialogue_nli", token="<token>")


# check overlap between splits
from itertools import combinations
for i, j in combinations(ds.keys(), 2):
    print(
        f"{i} - {j}: ",
        pd.merge(
            ds[i].to_pandas(), 
            ds[j].to_pandas(), 
            on=["original_label", "sentence1", "sentence2"], 
            how="inner",
        ).shape[0],
    )
#> train - dev:  58
#> train - test:  98
#> train - verified_test:  90
#> train - extra_test:  0
#> train - extra_dev:  0
#> train - extra_train:  0
#> train - valid_havenot:  0
#> train - valid_attributes:  0
#> train - valid_likedislike:  0
#> dev - test:  19
#> dev - verified_test:  19
#> dev - extra_test:  0
#> dev - extra_dev:  75
#> dev - extra_train:  75
#> dev - valid_havenot:  75
#> dev - valid_attributes:  75
#> dev - valid_likedislike:  75
#> test - verified_test:  12524
#> test - extra_test:  34
#> test - extra_dev:  0
#> test - extra_train:  0
#> test - valid_havenot:  0
#> test - valid_attributes:  0
#> test - valid_likedislike:  0
#> verified_test - extra_test:  29
#> verified_test - extra_dev:  0
#> verified_test - extra_train:  0
#> verified_test - valid_havenot:  0
#> verified_test - valid_attributes:  0
#> verified_test - valid_likedislike:  0
#> extra_test - extra_dev:  0
#> extra_test - extra_train:  0
#> extra_test - valid_havenot:  0
#> extra_test - valid_attributes:  0
#> extra_test - valid_likedislike:  0
#> extra_dev - extra_train:  250946
#> extra_dev - valid_havenot:  250946
#> extra_dev - valid_attributes:  250946
#> extra_dev - valid_likedislike:  250946
#> extra_train - valid_havenot:  250946
#> extra_train - valid_attributes:  250946
#> extra_train - valid_likedislike:  250946
#> valid_havenot - valid_attributes:  250946
#> valid_havenot - valid_likedislike:  250946
#> valid_attributes - valid_likedislike:  250946
Downloads last month
29
Edit dataset card

Models trained or fine-tuned on pietrolesci/dialogue_nli