pietrolesci
commited on
Commit
•
1eddac6
1
Parent(s):
4656960
Update README.md
Browse files
README.md
CHANGED
@@ -30,6 +30,7 @@ mapping = {"NOT VERIFIABLE": 0, "VERIFIABLE": 1}
|
|
30 |
Finally, a consistency check with the labels reported in the original FEVER dataset is performed.
|
31 |
|
32 |
NOTE: no label is available for the "test" split.
|
|
|
33 |
|
34 |
|
35 |
## Code to generate the dataset
|
@@ -177,4 +178,20 @@ if __name__ == "__main__":
|
|
177 |
|
178 |
nli_fever = DatasetDict(dataset_splits)
|
179 |
nli_fever.push_to_hub("pietrolesci/nli_fever", token="<your token>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
```
|
|
|
30 |
Finally, a consistency check with the labels reported in the original FEVER dataset is performed.
|
31 |
|
32 |
NOTE: no label is available for the "test" split.
|
33 |
+
NOTE: there are 3 instances in common between `dev` and `train` splits.
|
34 |
|
35 |
|
36 |
## Code to generate the dataset
|
|
|
178 |
|
179 |
nli_fever = DatasetDict(dataset_splits)
|
180 |
nli_fever.push_to_hub("pietrolesci/nli_fever", token="<your token>")
|
181 |
+
|
182 |
+
# check overlap between splits
|
183 |
+
from itertools import combinations
|
184 |
+
for i, j in combinations(dataset_splits.keys(), 2):
|
185 |
+
print(
|
186 |
+
f"{i} - {j}: ",
|
187 |
+
pd.merge(
|
188 |
+
dataset_splits[i].to_pandas(),
|
189 |
+
dataset_splits[j].to_pandas(),
|
190 |
+
on=["premise", "hypothesis", "label"],
|
191 |
+
how="inner",
|
192 |
+
).shape[0],
|
193 |
+
)
|
194 |
+
#> train - dev: 3
|
195 |
+
#> train - test: 0
|
196 |
+
#> dev - test: 0
|
197 |
```
|