Datasets:

Modalities:
Text
Libraries:
Datasets
License:
parquet-converter commited on
Commit
45c1729
·
1 Parent(s): 2c9b5fc

Update parquet files

Browse files
README.md DELETED
@@ -1,3 +0,0 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
mega-acceptability-v2.tsv → mega-acceptability-v2/mega-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:81ae0810dd7b2af230de980ff8acb0675727ae194ac82e6caabacdeb744955e4
3
- size 36793323
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32ff6b53aa3d6997ad299724e814ebcc279d1951d315db5d6ef5ad5199bc46f6
3
+ size 1066
mega-intensionality-v1-normalized.tsv DELETED
The diff for this file is too large to render. See raw diff
 
mega-intensionality-v1-normalized/mega-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13a39189691f62568132f0368575e19fd3f2e26ad6ff839ed972217ce6e3bb9b
3
+ size 355941
mega-negraising-v1-normalized.tsv DELETED
The diff for this file is too large to render. See raw diff
 
mega-negraising-v1-normalized/mega-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50dc5d7a955c6b541d566a22cb7623aee551fde2cf780bf551a7255821ba175d
3
+ size 350410
mega-orientation-v1.1.tsv DELETED
The diff for this file is too large to render. See raw diff
 
mega-orientation-v1.1/mega-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d10d858ee6ecc661863d605c1ed91d18c4a9de0f4178867cbdd35b6d85c42b7
3
+ size 370689
mega-veridicality-v2.csv DELETED
The diff for this file is too large to render. See raw diff
 
mega-veridicality-v2/mega-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1b20c2a31f74dae5af49e76cc36884c9c20355105839a17c7ef0930356eec30
3
+ size 453692
mega.py DELETED
@@ -1,46 +0,0 @@
1
- import datasets
2
- import csv
3
-
4
-
5
- citation='''
6
- @article{white2020frequency,
7
- title={Frequency, acceptability, and selection: A case study of clause-embedding},
8
- author={White, Aaron Steven and Rawlins, Kyle},
9
- journal={arXiv preprint arXiv:2004.04106},
10
- year={2020}
11
- }
12
- '''
13
-
14
- class MegaConfig(datasets.BuilderConfig):
15
- citation=citation
16
-
17
- files = ['mega-acceptability-v2.tsv', 'mega-intensionality-v1-normalized.tsv', 'mega-negraising-v1-normalized.tsv',
18
- 'mega-orientation-v1.1.tsv', 'mega-veridicality-v2.csv']
19
-
20
- _URLs = {f:f"https://huggingface.co/datasets/metaeval/mega/raw/main/{f}" for f in files}
21
-
22
- class Mega(datasets.GeneratorBasedBuilder):
23
-
24
- BUILDER_CONFIGS = [
25
- MegaConfig(
26
- name='.'.join(n.split('.')[:-1]),
27
- data_dir=n
28
- ) for n in files
29
- ]
30
-
31
- def _split_generators(self, dl_manager: datasets.DownloadManager):
32
- data_file = dl_manager.download(_URLs)
33
- return [
34
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_file[self.config.data_dir]}),
35
- ]
36
-
37
- def _info(self):
38
- return datasets.DatasetInfo()
39
-
40
- def _generate_examples(self, filepath):
41
- with open(filepath, encoding="utf-8") as f:
42
- reader = csv.DictReader(f,delimiter='\t' if '.tsv' in self.config.data_dir else ',')
43
- for id_, row in enumerate(reader):
44
- if id_ == 0:
45
- continue
46
- yield id_, row