parquet-converter commited on
Commit
065bdf3
1 Parent(s): 89c050a

Update parquet files

Browse files
README.md DELETED
@@ -1,3 +0,0 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
snli_train.jsonl → atomic/defeasible-nli-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aeb3302c9b828b01120bd0c952079c9be9b3aea13e5b4fd68e27335d83c71760
3
- size 37467246
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f353a9c92dbe9adea913dda4d3573a927512cb20fcd542832888cf13f74367e
3
+ size 177862
social_train.jsonl → atomic/defeasible-nli-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:698347642b50d620ee451c6fe443f7e01731f2ee404ad7c83c2bf4f6e8b792af
3
- size 44363770
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f817acbcc8a06b228bb2242840c60270b060a024c8b134da8a7e175814181b9
3
+ size 1531279
atomic_train.jsonl → atomic/defeasible-nli-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d47f4852b634d3212c9beb442d9ba7f5348256b972aa662eede0e8b8fc98344e
3
- size 18784118
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a40cad886670fd77c6c6c67139bb833351a296b621251bf4d6a1f7c40d6dfa83
3
+ size 162520
atomic_dev.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
atomic_test.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
defeasible-nli.py DELETED
@@ -1,60 +0,0 @@
1
- import datasets
2
- import json
3
- import os
4
-
5
- citation='''
6
- @inproceedings{rudinger-etal-2020-thinking,
7
- title = "Thinking Like a Skeptic: Defeasible Inference in Natural Language",
8
- author = "Rudinger, Rachel and
9
- Shwartz, Vered and
10
- Hwang, Jena D. and
11
- Bhagavatula, Chandra and
12
- Forbes, Maxwell and
13
- Le Bras, Ronan and
14
- Smith, Noah A. and
15
- Choi, Yejin",
16
- booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2020",
17
- month = nov,
18
- year = "2020",
19
- address = "Online",
20
- publisher = "Association for Computational Linguistics",
21
- url = "https://www.aclweb.org/anthology/2020.findings-emnlp.418",
22
- doi = "10.18653/v1/2020.findings-emnlp.418",
23
- pages = "4661--4675"
24
- }
25
- '''
26
-
27
- class DefeasibleNLIConfig(datasets.BuilderConfig):
28
- citation=citation
29
-
30
- configs = ['atomic','snli','social']
31
- splits=['train', 'test', 'dev']
32
- _URLs = {(f,s):f"https://huggingface.co/datasets/metaeval/defeasible-nli/resolve/main/{f}_{s}.jsonl" for f in configs for s in splits}
33
-
34
- class DefeasibleNLI(datasets.GeneratorBasedBuilder):
35
-
36
- BUILDER_CONFIGS = [
37
- DefeasibleNLIConfig(
38
- name=n,
39
- data_dir=n
40
- ) for n in configs
41
- ]
42
-
43
- def _split_generators(self, dl_manager: datasets.DownloadManager):
44
- path = lambda split: dl_manager.download(_URLs[self.config.name,split])
45
- return [ datasets.SplitGenerator(name=name, gen_kwargs={'path':path(split),'split':split})
46
- for name,split in zip([datasets.Split.TRAIN,datasets.Split.VALIDATION,datasets.Split.TEST],
47
- ['train','dev','test'])]
48
-
49
- def _info(self):
50
- return datasets.DatasetInfo()
51
-
52
- def _generate_examples(self,path,split):
53
- """Yields examples."""
54
- with open(path, "r", encoding="utf-8") as f:
55
- for id_, line in enumerate(f):
56
- line_dict = json.loads(line)
57
- if not line_dict['UpdateTypeImpossible']:
58
- fields = ["Premise","Hypothesis","Update","UpdateType"]#,"UpdateTypeImpossible","UpdateTypeImpossibleReason"]
59
- line_dict = {k:v for k,v in line_dict.items() if k in fields}
60
- yield id_, line_dict
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
snli/defeasible-nli-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f52bcdd28bab86823fd21fc84c7846aa7bc9d5690738d469252cdfbf8356dd44
3
+ size 74358
snli/defeasible-nli-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37c314082cdff82c98387c0f548a4a5cc0a1855fd1c058945c31233ad0fa3172
3
+ size 3481183
snli/defeasible-nli-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dc0d4cd460d7c1c8e15dc2e854c6566fd867b2da11554e884b3f3c1616b4362
3
+ size 72442
snli_dev.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
snli_test.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
social/defeasible-nli-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edaf14fc91e0082fd756cf32969e9ae30d99e33f8e36fc19aaa16bdce0549430
3
+ size 292731
social/defeasible-nli-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17b19033c68a82be3e527908b3ba2e9a50c924c84f2ad3a0cec48ae3ff923e10
3
+ size 2376646
social/defeasible-nli-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ba65da4ed921bce200b765f047c0054f036524c2853782adf100f25b55f8b7e
3
+ size 290428
social_dev.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
social_test.jsonl DELETED
The diff for this file is too large to render. See raw diff