Skip to content
giuidPublic

About

Dataset for Natural Language inference

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

FANCY: A Diagnostic Data-Set for NLI Models

FANCY (FActivity, Negation, Common-sense, hYpernymy) is a diagnostic dataset for Natural Language Inference (NLI) in English. It contains 4,000 premise–hypothesis pairs, 1,000 for each of four linguistic phenomena that are known to be hard for NLI models:

Phenomenon What is tested
Factivity Whether the truth of the embedded clause is preserved by the main verb (factive, belief, perception, report verbs…).
Negation Explicit, implicit, contrastive and double negation; upward and downward monotone contexts.
Common sense Inferences that need world knowledge (temporal relations, cause/effect, part-of, mutual exclusivity…).
Hypernymy / hyponymy Lexical entailment through hyponymy, troponymy and phrasemes.

Each pair is labelled as entailment, neutral or contradiction and annotated with fine-grained features of the phenomenon it tests, so that errors can be analysed category by category.

Paper: G. Rocchietti, F. Achena, G. Marziano, S. Salaris, A. Lenci, FANCY: A Diagnostic Data-Set for NLI Models, CLiC-it 2021 (PDF · DOI).

Data

A single CSV file, fancy_dataset.csv (4,000 rows, UTF-8, comma-separated).

Column Content
premises Premise sentence.
hypothesis Hypothesis sentence.
labels Gold NLI label: entailment, neutral or contradiction.
Lexical Semantics, Logic, Knowledge, Domain Coarse category of the pair and source domain of the sentence (artificial, Web, Wikipedia, news).
Type Hypernymy subset: hyponymy, troponymy or phraseme.
Premise Polarity, Hypothesis Certainty, Verb Category, Inference derivation Factivity subset: polarity of the premise, status of the embedded clause (fact, counterfact, possibly fact…), class of the main verb, lexically vs. construction-driven inference.
Common-Sense Type 1, Common-Sense Type 2 Common-sense subset: type of knowledge required.

Columns that do not apply to a subset are empty. Labels and some category values use inconsistent capitalisation and trailing spaces; normalise them before use:

import pandas as pd

df = pd.read_csv("fancy_dataset.csv")
df = df.apply(lambda c: c.str.strip() if c.dtype == "object" else c)
df["labels"] = df["labels"].str.lower()
df = df[df["labels"].isin(["entailment", "neutral", "contradiction"])]

Citation

@inproceedings{rocchietti2021fancy,
  author    = {Rocchietti, Guido and Achena, Flavia and Marziano, Giuseppe and Salaris, Sara and Lenci, Alessandro},
  title     = {{FANCY}: A Diagnostic Data-Set for {NLI} Models},
  booktitle = {Proceedings of the Eighth Italian Conference on Computational Linguistics (CLiC-it 2021)},
  series    = {CEUR Workshop Proceedings},
  volume    = {3033},
  year      = {2021},
  doi       = {10.4000/books.aaccademia.10804}
}

About

Dataset for Natural Language inference

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors