NLI Eval Datasets
Collection
A curated collection of NLI evaluation datasets. Each dataset is exactly as originally proposed • 19 items • Updated • 3
sentence1 stringlengths 17 287 | sentence2 stringlengths 17 287 | label class label 3
classes | dtype stringclasses 1
value | gold_label stringclasses 3
values |
|---|---|---|---|---|
If Joe goes with her 6 years old twin brothers , and they each took 3 rides in total | If Joe goes with her more than 1 years old twin brothers , and they each took 3 rides in total | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
If Joe goes with her more than 1 years old twin brothers , and they each took 3 rides in total | If Joe goes with her 6 years old twin brothers , and they each took 3 rides in total | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
If Joe goes with her 6 years old twin brothers , and they each took 3 rides in total | If Joe goes with her less than 6 years old twin brothers , and they each took 3 rides in total | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Tim has 350 pounds of cement in 100 , 50 , and 25 pound bags | Tim has less than 750 pounds of cement in 100 , 50 , and 25 pound bags | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Tim has less than 750 pounds of cement in 100 , 50 , and 25 pound bags | Tim has 350 pounds of cement in 100 , 50 , and 25 pound bags | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Tim has 350 pounds of cement in 100 , 50 , and 25 pound bags | Tim has less than 350 pounds of cement in 100 , 50 , and 25 pound bags | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Renu can do a piece of work in 8 days , but with the help of her friend Suma , she can do it in 4 days | Renu can do a piece of work in more than 4 days , but with the help of her friend Suma , she can do it in 4 days | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Renu can do a piece of work in more than 4 days , but with the help of her friend Suma , she can do it in 4 days | Renu can do a piece of work in 8 days , but with the help of her friend Suma , she can do it in 4 days | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Renu can do a piece of work in 8 days , but with the help of her friend Suma , she can do it in 4 days | Renu can do a piece of work in 2 days , but with the help of her friend Suma , she can do it in 4 days | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
John takes a trip and drives 9 hours from Town X to Town Z at a rate of 60 miles per hour | John takes a trip and drives more than 4 hours from Town X to Town Z at a rate of 60 miles per hour | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
John takes a trip and drives more than 4 hours from Town X to Town Z at a rate of 60 miles per hour | John takes a trip and drives 9 hours from Town X to Town Z at a rate of 60 miles per hour | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
John takes a trip and drives 9 hours from Town X to Town Z at a rate of 60 miles per hour | John takes a trip and drives more than 9 hours from Town X to Town Z at a rate of 60 miles per hour | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
On his way back , John drives 85 miles per hour and stops in Town Y which is midway between Town X and Town Z | On his way back , John drives more than 65 miles per hour and stops in Town Y which is midway between Town X and Town Z | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
On his way back , John drives more than 65 miles per hour and stops in Town Y which is midway between Town X and Town Z | On his way back , John drives 85 miles per hour and stops in Town Y which is midway between Town X and Town Z | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
On his way back , John drives 85 miles per hour and stops in Town Y which is midway between Town X and Town Z | On his way back , John drives more than 85 miles per hour and stops in Town Y which is midway between Town X and Town Z | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
NHAI employs 100 men to build a highway of 2 km in 50 days working 8 hours a day | NHAI employs less than 700 men to build a highway of 2 km in 50 days working 8 hours a day | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
NHAI employs less than 700 men to build a highway of 2 km in 50 days working 8 hours a day | NHAI employs 100 men to build a highway of 2 km in 50 days working 8 hours a day | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
NHAI employs 100 men to build a highway of 2 km in 50 days working 8 hours a day | NHAI employs 400 men to build a highway of 2 km in 50 days working 8 hours a day | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
than how many more employees should NHAI hire to finish it in time working 10 hours a day ? | than how many more employees should NHAI hire to finish it in time working less than 70 hours a day ? | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
than how many more employees should NHAI hire to finish it in time working less than 70 hours a day ? | than how many more employees should NHAI hire to finish it in time working 10 hours a day ? | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
than how many more employees should NHAI hire to finish it in time working 10 hours a day ? | than how many more employees should NHAI hire to finish it in time working more than 10 hours a day ? | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
There are 32 stations between Ernakulam and Chennai | There are more than 22 stations between Ernakulam and Chennai | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
There are more than 22 stations between Ernakulam and Chennai | There are 32 stations between Ernakulam and Chennai | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
There are 32 stations between Ernakulam and Chennai | There are less than 32 stations between Ernakulam and Chennai | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
How many minutes does it take Dhoni to type 64 words if he types at the rate of 16 words per minute ? | How many minutes does it take Dhoni to type less than 84 words if he types at the rate of 16 words per minute ? | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
How many minutes does it take Dhoni to type less than 84 words if he types at the rate of 16 words per minute ? | How many minutes does it take Dhoni to type 64 words if he types at the rate of 16 words per minute ? | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
How many minutes does it take Dhoni to type 64 words if he types at the rate of 16 words per minute ? | How many minutes does it take Dhoni to type 54 words if he types at the rate of 16 words per minute ? | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
4200 from Anwar at 6 % p | less than 8200 from Anwar at 6 % p | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
less than 8200 from Anwar at 6 % p | 4200 from Anwar at 6 % p | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
4200 from Anwar at 6 % p | more than 4200 from Anwar at 6 % p | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
How many ways are there for 3 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | How many ways are there for more than 2 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
How many ways are there for more than 2 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | How many ways are there for 3 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
How many ways are there for 3 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | How many ways are there for less than 3 males and 3 females to sit ( around a circular table ) if no male should sit next to a male ( and no female next to female ) and Mary wants to sit with her back on the wall ? | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Mr Yadav spends 60 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | Mr Yadav spends more than 10 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Mr Yadav spends more than 10 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | Mr Yadav spends 60 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Mr Yadav spends 60 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | Mr Yadav spends 10 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Louie takes out a three - month loan of $ 1000 | Louie takes out a three - month loan of $ less than 6000 | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Louie takes out a three - month loan of $ less than 6000 | Louie takes out a three - month loan of $ 1000 | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Louie takes out a three - month loan of $ 1000 | Louie takes out a three - month loan of $ 8000 | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
A runner runs the 40 miles from Marathon to Athens at a constant speed | A runner runs the more than 20 miles from Marathon to Athens at a constant speed | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
A runner runs the more than 20 miles from Marathon to Athens at a constant speed | A runner runs the 40 miles from Marathon to Athens at a constant speed | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
A runner runs the 40 miles from Marathon to Athens at a constant speed | A runner runs the 10 miles from Marathon to Athens at a constant speed | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
If the marks secured by Reema was written as 36 instead of 86 then find the correct average marks up to two decimal places . | If the marks secured by Reema was written as more than 16 instead of 86 then find the correct average marks up to two decimal places . | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
If the marks secured by Reema was written as more than 16 instead of 86 then find the correct average marks up to two decimal places . | If the marks secured by Reema was written as 36 instead of 86 then find the correct average marks up to two decimal places . | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
If the marks secured by Reema was written as 36 instead of 86 then find the correct average marks up to two decimal places . | If the marks secured by Reema was written as more than 36 instead of 86 then find the correct average marks up to two decimal places . | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Maddie has 24 apples , if she give 12 to mike , how many does she have left ? | Maddie has less than 34 apples , if she give 12 to mike , how many does she have left ? | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Maddie has less than 34 apples , if she give 12 to mike , how many does she have left ? | Maddie has 24 apples , if she give 12 to mike , how many does she have left ? | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Maddie has 24 apples , if she give 12 to mike , how many does she have left ? | Maddie has 44 apples , if she give 12 to mike , how many does she have left ? | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Sarah signed 1 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | Sarah signed less than 3 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Sarah signed less than 3 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | Sarah signed 1 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Sarah signed 1 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | Sarah signed 6 / 2 of the Christmas cards , and Richard signed 3 / 8 of them | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Bruce and Bhishma are running on a circular track of length 600 m | Bruce and Bhishma are running on a circular track of length less than 800 m | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Bruce and Bhishma are running on a circular track of length less than 800 m | Bruce and Bhishma are running on a circular track of length 600 m | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Bruce and Bhishma are running on a circular track of length 600 m | Bruce and Bhishma are running on a circular track of length less than 600 m | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Speed of Bruce is 30 m / s and that of Bhishma is 20 m / s | Speed of Bruce is less than 60 m / s and that of Bhishma is 20 m / s | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Speed of Bruce is less than 60 m / s and that of Bhishma is 20 m / s | Speed of Bruce is 30 m / s and that of Bhishma is 20 m / s | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Speed of Bruce is 30 m / s and that of Bhishma is 20 m / s | Speed of Bruce is 60 m / s and that of Bhishma is 20 m / s | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
If Dave has more than one of each of the listed garments , and can make 2400 different outfits , then for how many garments does Dave have exactly five choices ? | If Dave has more than one of each of the listed garments , and can make more than 1400 different outfits , then for how many garments does Dave have exactly five choices ? | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
If Dave has more than one of each of the listed garments , and can make more than 1400 different outfits , then for how many garments does Dave have exactly five choices ? | If Dave has more than one of each of the listed garments , and can make 2400 different outfits , then for how many garments does Dave have exactly five choices ? | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
If Dave has more than one of each of the listed garments , and can make 2400 different outfits , then for how many garments does Dave have exactly five choices ? | If Dave has more than one of each of the listed garments , and can make more than 2400 different outfits , then for how many garments does Dave have exactly five choices ? | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
In Arun ' s company 60 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | In Arun ' s company more than 50 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
In Arun ' s company more than 50 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | In Arun ' s company 60 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
In Arun ' s company 60 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | In Arun ' s company 40 % of the employees earn less than $ 50,000 a year , 60 % of the employees earn more than $ 40,000 a year , 11 % of the employees earn $ 43,000 a year and 5 % of the employees earn $ 49,000 a year | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
He works at it for 20 days and then Rajesh finished it in 30 days | He works at it for less than 60 days and then Rajesh finished it in 30 days | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
He works at it for less than 60 days and then Rajesh finished it in 30 days | He works at it for 20 days and then Rajesh finished it in 30 days | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
He works at it for 20 days and then Rajesh finished it in 30 days | He works at it for 50 days and then Rajesh finished it in 30 days | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
On a 20 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | On a less than 80 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
On a less than 80 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | On a 20 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
On a 20 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | On a 60 mile course , Pat bicycled at an average rate of 30 miles per hour for the first 12 minutes and without a break , ran the rest of the distance at an average rate of 8 miles per hour | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Murali travelled from city A to city B at a speed of 40 kmph and from city B to city C at 60 kmph | Murali travelled from city A to city B at a speed of less than 80 kmph and from city B to city C at 60 kmph | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Murali travelled from city A to city B at a speed of less than 80 kmph and from city B to city C at 60 kmph | Murali travelled from city A to city B at a speed of 40 kmph and from city B to city C at 60 kmph | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Murali travelled from city A to city B at a speed of 40 kmph and from city B to city C at 60 kmph | Murali travelled from city A to city B at a speed of more than 40 kmph and from city B to city C at 60 kmph | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is 2 : 3 ?
A | What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is less than 6 : 3 ? A | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is less than 6 : 3 ? A | What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is 2 : 3 ?
A | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is 2 : 3 ?
A | What is the average speed of Murali from A to C given that the ratio of distances between A to B and B to C is 5 : 3 ? A | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Efrida and Frazer who live 12 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | Efrida and Frazer who live less than 62 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Efrida and Frazer who live less than 62 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | Efrida and Frazer who live 12 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Efrida and Frazer who live 12 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | Efrida and Frazer who live more than 12 miles apart , meet at a restaurant that is directly north of Efrida ' s home and directly east of Frazer ' s home | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
If Henry were to add 9 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | If Henry were to add more than 8 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
If Henry were to add more than 8 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | If Henry were to add 9 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
If Henry were to add 9 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | If Henry were to add more than 9 gallons of water to a tank that is already 3 / 4 full of water , the tank would be 7 / 8 full | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Jerry alone cleans the entire house in 6 hours | Jerry alone cleans the entire house in more than 4 hours | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Jerry alone cleans the entire house in more than 4 hours | Jerry alone cleans the entire house in 6 hours | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Jerry alone cleans the entire house in 6 hours | Jerry alone cleans the entire house in less than 6 hours | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other 100 are China | In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other less than 300 are China | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other less than 300 are China | In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other 100 are China | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other 100 are China | In Richard ' s office one half of the workers are Indians , quarter are from America , one - fifth are from Canada and the other more than 100 are China | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Lucy deposited $ 67600 in an investment fund that provided 16 percent annual return compounded quarterly | Lucy deposited $ more than 27600 in an investment fund that provided 16 percent annual return compounded quarterly | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Lucy deposited $ more than 27600 in an investment fund that provided 16 percent annual return compounded quarterly | Lucy deposited $ 67600 in an investment fund that provided 16 percent annual return compounded quarterly | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Lucy deposited $ 67600 in an investment fund that provided 16 percent annual return compounded quarterly | Lucy deposited $ 47600 in an investment fund that provided 16 percent annual return compounded quarterly | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
John was thrice as old as Tom 6 yrs back | John was thrice as old as Tom more than 3 yrs back | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
John was thrice as old as Tom more than 3 yrs back | John was thrice as old as Tom 6 yrs back | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
John was thrice as old as Tom 6 yrs back | John was thrice as old as Tom 1 yrs back | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
He will be 5 / 3 times as old as Tom 6 years hence | He will be less than 8 / 3 times as old as Tom 6 years hence | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
He will be less than 8 / 3 times as old as Tom 6 years hence | He will be 5 / 3 times as old as Tom 6 years hence | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
He will be 5 / 3 times as old as Tom 6 years hence | He will be 1 / 3 times as old as Tom 6 years hence | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
Warner Limited has 4 Senior Managing Directors and 6 Managing Directors | Warner Limited has less than 8 Senior Managing Directors and 6 Managing Directors | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
Warner Limited has less than 8 Senior Managing Directors and 6 Managing Directors | Warner Limited has 4 Senior Managing Directors and 6 Managing Directors | 1neutral | multinli_0.9_quant_hard.jsonl | neutral |
Warner Limited has 4 Senior Managing Directors and 6 Managing Directors | Warner Limited has 8 Senior Managing Directors and 6 Managing Directors | 2contradiction | multinli_0.9_quant_hard.jsonl | contradiction |
The 42 parents participating in the Smithville PTA have been assigned to at least 1 of 3 committees : festival planning , classroom aid , and teacher relations | The more than 22 parents participating in the Smithville PTA have been assigned to at least 1 of 3 committees : festival planning , classroom aid , and teacher relations | 0entailment | multinli_0.9_quant_hard.jsonl | entailment |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Original dataset page here and dataset available here.
Added new column label with encoded labels with the following mapping
{"entailment": 0, "neutral": 1, "contradiction": 2}
and the columns with parse information are dropped as they are not well formatted.
Also, the name of the file from which each instance comes is added in the column dtype.
import pandas as pd
from datasets import Dataset, ClassLabel, Value, Features, DatasetDict
import json
from pathlib import Path
# load data
ds = {}
path = Path("<path to folder>")
for i in path.rglob("*.jsonl"):
print(i)
name = str(i).split("/")[0].lower()
dtype = str(i).split("/")[1].lower()
# read data
with i.open("r") as fl:
df = pd.DataFrame([json.loads(line) for line in fl])
# select columns
df = df.loc[:, ["sentence1", "sentence2", "gold_label"]]
# add file name as column
df["dtype"] = dtype
# encode labels
df["label"] = df["gold_label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds[name] = df
# cast to dataset
features = Features(
{
"sentence1": Value(dtype="string"),
"sentence2": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
"dtype": Value(dtype="string"),
"gold_label": Value(dtype="string"),
}
)
ds = DatasetDict({k: Dataset.from_pandas(v, features=features) for k, v in ds.items()})
ds.push_to_hub("pietrolesci/stress_tests_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=["sentence1", "sentence2", "label"],
how="inner",
).shape[0],
)
#> numerical_reasoning - negation: 0
#> numerical_reasoning - length_mismatch: 0
#> numerical_reasoning - spelling_error: 0
#> numerical_reasoning - word_overlap: 0
#> numerical_reasoning - antonym: 0
#> negation - length_mismatch: 0
#> negation - spelling_error: 0
#> negation - word_overlap: 0
#> negation - antonym: 0
#> length_mismatch - spelling_error: 0
#> length_mismatch - word_overlap: 0
#> length_mismatch - antonym: 0
#> spelling_error - word_overlap: 0
#> spelling_error - antonym: 0
#> word_overlap - antonym: 0