provenance
stringclasses
1 value
index
int64
0
3.66k
text
stringlengths
28
202
hypothesis
stringlengths
30
216
partof
stringclasses
3 values
hypothesis_grammatical
stringclasses
3 values
judgement_valid
stringclasses
3 values
label
class label
0
1
schema-challenge
0
The bee landed on the flower because it had pollen .
The bee landed on the flower because the bee had pollen .
train
0not-entailed
schema-challenge
1
The bee landed on the flower because it had pollen .
The bee landed on the flower because the flower had pollen .
train
1entailed
schema-challenge
2
The bee landed on the flower because it wanted pollen .
The bee landed on the flower because the bee wanted pollen .
train
1entailed
schema-challenge
3
The bee landed on the flower because it wanted pollen .
The bee landed on the flower because the flower wanted pollen .
train
0not-entailed
schema-challenge
4
When Debbie splashed Tina, she got in trouble .
When Debbie splashed Tina , Debbie got in trouble .
train
1entailed
schema-challenge
5
When Debbie splashed Tina, she got in trouble .
When Debbie splashed Tina , Tina got in trouble .
train
0not-entailed
schema-challenge
6
When Debbie splashed Tina, she got wet .
When Debbie splashed Tina , Debbie got wet .
train
0not-entailed
schema-challenge
7
When Debbie splashed Tina, she got wet .
When Debbie splashed Tina , Tina got wet .
train
1entailed
schema-challenge
8
The bus driver yelled at a kid after she drove her vehicle .
The bus driver yelled at a kid after the bus driver drove her vehicle .
train
1entailed
schema-challenge
9
The bus driver yelled at a kid after she drove her vehicle .
The bus driver yelled at a kid after the kid drove her vehicle .
train
0not-entailed
schema-challenge
10
The bus driver yelled at a kid after she broke a window .
The bus driver yelled at a kid after the bus driver broke a window .
train
0not-entailed
schema-challenge
11
The bus driver yelled at a kid after she broke a window .
The bus driver yelled at a kid after the kid broke a window .
train
1entailed
schema-challenge
12
Jimbo was running from Bobbert because he smelled awful .
Jimbo was running from Bobbert because Jimbo smelled awful .
train
0not-entailed
schema-challenge
13
Jimbo was running from Bobbert because he smelled awful .
Jimbo was running from Bobbert because Bobbert smelled awful .
train
1entailed
schema-challenge
14
Jimbo was running from Bobbert because he wanted to get to the car first .
Jimbo was running from Bobbert because Jimbo wanted to get to the car first .
train
1entailed
schema-challenge
15
Jimbo was running from Bobbert because he wanted to get to the car first .
Jimbo was running from Bobbert because Bobbert wanted to get to the car first .
train
0not-entailed
schema-challenge
16
Jimbo attacked Bobbert because he stole an elephant from the zoo .
Jimbo attacked Bobbert because Jimbo stole an elephant from the zoo .
train
0not-entailed
schema-challenge
17
Jimbo attacked Bobbert because he stole an elephant from the zoo .
Jimbo attacked Bobbert because Bobbert stole an elephant from the zoo .
train
1entailed
schema-challenge
18
Jimbo attacked Bobbert because he could not control his rage .
Jimbo attacked Bobbert because Jimbo could not control his rage .
train
1entailed
schema-challenge
19
Jimbo attacked Bobbert because he could not control his rage .
Jimbo attacked Bobbert because Bobbert could not control his rage .
train
0not-entailed
schema-challenge
20
Jimbo was afraid of Bobbert because she gets scared around new people .
Jimbo was afraid of Bobbert because Jimbo gets scared around new people .
train
1entailed
schema-challenge
21
Jimbo was afraid of Bobbert because she gets scared around new people .
Jimbo was afraid of Bobbert because Bobbert gets scared around new people .
train
0not-entailed
schema-challenge
22
Jimbo was afraid of Bobbert because she was running around with a bloody spear .
Jimbo was afraid of Bobbert because Jimbo was running around with a bloody spear .
train
0not-entailed
schema-challenge
23
Jimbo was afraid of Bobbert because she was running around with a bloody spear .
Jimbo was afraid of Bobbert because Bobbert was running around with a bloody spear .
train
1entailed
schema-challenge
24
The man stole the neighbor's bike because he needed one .
The man stole the neighbor 's bike because the man needed one .
train
1entailed
schema-challenge
25
The man stole the neighbor's bike because he needed one .
The man stole the neighbor 's bike because the neighbor needed one .
train
0not-entailed
schema-challenge
26
The man stole the neighbor's bike because he had one extra .
The man stole the neighbor 's bike because the man had one extra .
train
0not-entailed
schema-challenge
27
The man stole the neighbor's bike because he had one extra .
The man stole the neighbor 's bike because the neighbor had one extra .
train
Yes
Yes
1entailed
schema-challenge
28
The bird ate the pie and it died .
The bird ate the pie and the bird died .
train
1entailed
schema-challenge
29
The bird ate the pie and it died .
The bird ate the pie and the pie died .
train
0not-entailed
schema-challenge
30
The bird ate the pie and it was ruined .
The bird ate the pie and the bird was ruined .
train
0not-entailed
schema-challenge
31
The bird ate the pie and it was ruined .
The bird ate the pie and the pie was ruined .
train
1entailed
schema-challenge
32
The bird perched on the limb and it bent .
The bird perched on the limb and the bird bent .
train
0not-entailed
schema-challenge
33
The bird perched on the limb and it bent .
The bird perched on the limb and the limb bent .
train
1entailed
schema-challenge
34
The bird perched on the limb and it sang .
The bird perched on the limb and the bird sang .
train
1entailed
schema-challenge
35
The bird perched on the limb and it sang .
The bird perched on the limb and the limb sang .
train
0not-entailed
schema-challenge
36
Mary cleaned Susan's room and she was thankful .
Mary cleaned Susan 's room and Mary was thankful .
train
0not-entailed
schema-challenge
37
Mary cleaned Susan's room and she was thankful .
Mary cleaned Susan 's room and Susan was thankful .
train
1entailed
schema-challenge
38
Mary cleaned Susan's room and she asked a favor .
Mary cleaned Susan 's room and Mary asked a favor .
train
1entailed
schema-challenge
39
Mary cleaned Susan's room and she asked a favor .
Mary cleaned Susan 's room and Susan asked a favor .
train
0not-entailed
schema-challenge
40
Mary stabbed Jennifer, so John took her to the hospital .
Mary stabbed Jennifer , so John took Mary to the hospital .
train
0not-entailed
schema-challenge
41
Mary stabbed Jennifer, so John took her to the hospital .
Mary stabbed Jennifer , so John took Jennifer to the hospital .
train
1entailed
schema-challenge
42
Mary stabbed Jennifer, so John reported her to the police .
Mary stabbed Jennifer , so John reported Mary to the police .
train
1entailed
schema-challenge
43
Mary stabbed Jennifer, so John reported her to the police .
Mary stabbed Jennifer , so John reported Jennifer to the police .
train
0not-entailed
schema-challenge
44
Lions eat zebras because they are predators .
Lions eat zebras because Lions are predators .
train
1entailed
schema-challenge
45
Lions eat zebras because they are predators .
Lions eat zebras because zebras are predators .
train
0not-entailed
schema-challenge
46
Lions eat zebras because they are meaty .
Lions eat zebras because Lions are meaty .
train
0not-entailed
schema-challenge
47
Lions eat zebras because they are meaty .
Lions eat zebras because zebras are meaty .
train
1entailed
schema-challenge
48
The coach criticized the player because he did not adhere to the team's formation .
The coach criticized the player because the coach did not adhere to the team 's formation .
train
0not-entailed
schema-challenge
49
The coach criticized the player because he did not adhere to the team's formation .
The coach criticized the player because the player did not adhere to the team 's formation .
train
1entailed
schema-challenge
50
The coach criticized the player because he explicitly told everyone not to break the team's formation .
The coach criticized the player because the coach explicitly told everyone not to break the team 's formation .
train
1entailed
schema-challenge
51
The coach criticized the player because he explicitly told everyone not to break the team's formation .
The coach criticized the player because the player explicitly told everyone not to break the team 's formation .
train
0not-entailed
schema-challenge
52
The academic clubs lost their members because they were poorly funded .
The academic clubs lost their members because the academic clubs were poorly funded .
train
1entailed
schema-challenge
53
The academic clubs lost their members because they were poorly funded .
The academic clubs lost their members because their members were poorly funded .
train
0not-entailed
schema-challenge
54
The academic clubs lost their members because they did not have free time .
The academic clubs lost their members because the academic clubs did not have free time .
train
0not-entailed
schema-challenge
55
The academic clubs lost their members because they did not have free time .
The academic clubs lost their members because their members did not have free time .
train
1entailed
schema-challenge
56
James asked Robert for a favor, but he refused .
James asked Robert for a favor , but James refused .
train
0not-entailed
schema-challenge
57
James asked Robert for a favor, but he refused .
James asked Robert for a favor , but Robert refused .
train
1entailed
schema-challenge
58
James asked Robert for a favor, but he was refused .
James asked Robert for a favor , but James was refused .
train
Yes
Yes
1entailed
schema-challenge
59
James asked Robert for a favor, but he was refused .
James asked Robert for a favor , but Robert was refused .
train
0not-entailed
schema-challenge
60
The teacher did not recommend William because he was not a good student .
The teacher did not recommend William because the teacher was not a good student .
train
0not-entailed
schema-challenge
61
The teacher did not recommend William because he was not a good student .
The teacher did not recommend William because William was not a good student .
train
1entailed
schema-challenge
62
The teacher did not recommend William because he had high standards .
The teacher did not recommend William because the teacher had high standards .
train
1entailed
schema-challenge
63
The teacher did not recommend William because he had high standards .
The teacher did not recommend William because William had high standards .
train
0not-entailed
schema-challenge
64
The doctor told Susan that she had cancer .
The doctor told Susan that the doctor had cancer .
train
0not-entailed
schema-challenge
65
The doctor told Susan that she had cancer .
The doctor told Susan that Susan had cancer .
train
1entailed
schema-challenge
66
The doctor told Susan that she had been busy .
The doctor told Susan that the doctor had been busy .
train
1entailed
schema-challenge
67
The doctor told Susan that she had been busy .
The doctor told Susan that Susan had been busy .
train
0not-entailed
schema-challenge
68
The professor grading the student's paper said that he was stupid .
The professor grading the student 's paper said that the professor was stupid .
train
Yes
Yes
0not-entailed
schema-challenge
69
The professor grading the student's paper said that he was stupid .
The professor grading the student 's paper said that the student was stupid .
train
1entailed
schema-challenge
70
The professor grading the student's paper said that he loved it .
The professor grading the student 's paper said that the professor loved it .
train
1entailed
schema-challenge
71
The professor grading the student's paper said that he loved it .
The professor grading the student 's paper said that the student loved it .
train
0not-entailed
schema-challenge
72
Jeremy annoyed Justin so he can leave the room .
Jeremy annoyed Justin so Jeremy can leave the room .
train
0not-entailed
schema-challenge
73
Jeremy annoyed Justin so he can leave the room .
Jeremy annoyed Justin so Justin can leave the room .
train
1entailed
schema-challenge
74
Jeremy annoyed Justin so he can have the room .
Jeremy annoyed Justin so Jeremy can have the room .
train
1entailed
schema-challenge
75
Jeremy annoyed Justin so he can have the room .
Jeremy annoyed Justin so Justin can have the room .
train
0not-entailed
schema-challenge
76
Paula liked Ness more than Pokey because he was nice to her .
Paula liked Ness more than Pokey because Ness was nice to her .
train
1entailed
schema-challenge
77
Paula liked Ness more than Pokey because he was nice to her .
Paula liked Ness more than Pokey because pokey was nice to her .
train
0not-entailed
schema-challenge
78
Paula liked Ness more than Pokey because he was mean to her .
Paula liked Ness more than Pokey because Ness was mean to her .
train
0not-entailed
schema-challenge
79
Paula liked Ness more than Pokey because he was mean to her .
Paula liked Ness more than Pokey because pokey was mean to her .
train
1entailed
schema-challenge
80
Rocky lost to Clubber Lang because he was not ready for the fight .
Rocky lost to Clubber Lang because Rocky was not ready for the fight .
train
1entailed
schema-challenge
81
Rocky lost to Clubber Lang because he was not ready for the fight .
Rocky lost to Clubber Lang because Clubber Lang was not ready for the fight .
train
0not-entailed
schema-challenge
82
Rocky lost to Clubber Lang because he was ready for the fight .
Rocky lost to Clubber Lang because Rocky was ready for the fight .
train
0not-entailed
schema-challenge
83
Rocky lost to Clubber Lang because he was ready for the fight .
Rocky lost to Clubber Lang because Clubber Lang was ready for the fight .
train
1entailed
schema-challenge
84
Aaron kissed Dan because he wanted to .
Aaron kissed Dan because Aaron wanted to .
train
1entailed
schema-challenge
85
Aaron kissed Dan because he wanted to .
Aaron kissed Dan because Dan wanted to .
train
0not-entailed
schema-challenge
86
Aaron kissed Dan because he wanted him to .
Aaron kissed Dan because Aaron wanted him to .
train
0not-entailed
schema-challenge
87
Aaron kissed Dan because he wanted him to .
Aaron kissed Dan because Dan wanted him to .
train
1entailed
schema-challenge
88
The students fell asleep during the professor's lectures because they were boring .
The students fell asleep during the professor 's lectures because the students were boring .
train
0not-entailed
schema-challenge
89
The students fell asleep during the professor's lectures because they were boring .
The students fell asleep during the professor 's lectures because the professor 's lectures were boring .
train
1entailed
schema-challenge
90
The students fell asleep during the professor's lectures because they were bored .
The students fell asleep during the professor 's lectures because the students were bored .
train
1entailed
schema-challenge
91
The students fell asleep during the professor's lectures because they were bored .
The students fell asleep during the professor 's lectures because the professor 's lectures were bored .
train
0not-entailed
schema-challenge
92
Derrick begged his boss for a raise but he did not get one .
Derrick begged his boss for a raise but the derrick did not get one .
train
1entailed
schema-challenge
93
Derrick begged his boss for a raise but he did not get one .
Derrick begged his boss for a raise but the his boss did not get one .
train
0not-entailed
schema-challenge
94
Derrick begged his boss for a raise but he did not give one .
Derrick begged his boss for a raise but the derrick did not give one .
train
0not-entailed
schema-challenge
95
Derrick begged his boss for a raise but he did not give one .
Derrick begged his boss for a raise but the his boss did not give one .
train
1entailed
schema-challenge
96
The jurors deliberated on the defendants' fate for hours, but they did not reach a verdict .
The jurors deliberated on the defendants ' fate for hours , but the jurors did not reach a verdict .
train
1entailed
schema-challenge
97
The jurors deliberated on the defendants' fate for hours, but they did not reach a verdict .
The jurors deliberated on the defendants ' fate for hours , but the defendants did not reach a verdict .
train
0not-entailed
schema-challenge
98
The jurors deliberated on the defendants' fate for hours, but they didn't receive the death penalty .
The jurors deliberated on the defendants ' fate for hours , but the jurors did n't receive the death penalty .
train
0not-entailed
schema-challenge
99
The jurors deliberated on the defendants' fate for hours, but they didn't receive the death penalty .
The jurors deliberated on the defendants ' fate for hours , but the defendants did n't receive the death penalty .
train
1entailed
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Overview

This dataset has been introduced by "Inference is Everything: Recasting Semantic Resources into a Unified Evaluation Framework", Aaron Steven White, Pushpendre Rastogi, Kevin Duh, Benjamin Van Durme. IJCNLP, 2017. Original data available here.

Dataset curation

The following processing is applied

  • hypothesis_grammatical and judgement_valid columns are filled with "" when empty
  • all columns are stripped
  • the entailed column is renamed label
  • label column is encoded with the following mapping {"not-entailed": 0, "entailed": 1}
  • columns rating and good_word are dropped from fnplus dataset

Code to generate the dataset

import pandas as pd
from datasets import Features, Value, ClassLabel, Dataset, DatasetDict


ds = {}
for name in ("fnplus", "sprl", "dpr"):

    # read data
    with open(f"<path to files>/{name}_data.txt", "r") as f:
        data = f.read()
    data = data.split("\n\n")
    data = [lines.split("\n") for lines in data]
    data = [dict([col.split(":", maxsplit=1) for col in line if len(col) > 0]) for line in data]
    df = pd.DataFrame(data)

    # fill empty hypothesis_grammatical and judgement_valid
    df["hypothesis_grammatical"] = df["hypothesis_grammatical"].fillna("")
    df["judgement_valid"] = df["judgement_valid"].fillna("")

    # fix dtype
    df["index"] = df["index"].astype(int)

    # strip
    for col in df.select_dtypes(object).columns:
        df[col] = df[col].str.strip()

    # rename columns
    df = df.rename(columns={"entailed": "label"})

    # encode labels
    df["label"] = df["label"].map({"not-entailed": 0, "entailed": 1})

    # cast to dataset
    features = Features({
        "provenance": Value(dtype="string", id=None),
        "index": Value(dtype="int64", id=None),
        "text": Value(dtype="string", id=None),
        "hypothesis": Value(dtype="string", id=None),
        "partof": Value(dtype="string", id=None),
        "hypothesis_grammatical": Value(dtype="string", id=None),
        "judgement_valid": Value(dtype="string", id=None),
        "label": ClassLabel(num_classes=2, names=["not-entailed", "entailed"]),
    })

    # select common columns
    df = df.loc[:, list(features.keys())]
    ds[name] = Dataset.from_pandas(df, features=features)

ds = DatasetDict(ds)
ds.push_to_hub("recast_white", token="<token>")
Downloads last month
47
Edit dataset card

Models trained or fine-tuned on pietrolesci/recast_white

Collection including pietrolesci/recast_white