Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
natural-language-inference
Languages:
Croatian
Size:
1K - 10K
ArXiv:
License:
SuzanaB
commited on
Commit
•
1c19a19
1
Parent(s):
dcaa338
Update data and paths
Browse files- .gitattributes +0 -16
- copa_hr.py +15 -5
- data.zip +0 -0
.gitattributes
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
copa_hr.py
CHANGED
@@ -15,6 +15,7 @@
|
|
15 |
|
16 |
|
17 |
import json
|
|
|
18 |
|
19 |
import datasets
|
20 |
|
@@ -33,19 +34,19 @@ following features: 'premise', 'choice1', 'choice2', 'label', 'question', 'chang
|
|
33 |
_HOMEPAGE = 'https://www.clarin.si/repository/xmlui/handle/11356/1404'
|
34 |
_LICENSE = ''
|
35 |
|
|
|
36 |
_TRAINING_FILE = 'train.jsonl'
|
37 |
_DEV_FILE = 'val.jsonl'
|
38 |
_TEST_FILE = 'test.jsonl'
|
39 |
|
40 |
|
41 |
class CopaHr(datasets.GeneratorBasedBuilder):
|
42 |
-
VERSION = datasets.Version('1.
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
datasets.BuilderConfig(
|
46 |
name='copa_hr',
|
47 |
version=VERSION,
|
48 |
-
data_files=[_TRAINING_FILE, _DEV_FILE, _TEST_FILE],
|
49 |
description=''
|
50 |
)
|
51 |
]
|
@@ -73,15 +74,24 @@ class CopaHr(datasets.GeneratorBasedBuilder):
|
|
73 |
)
|
74 |
|
75 |
def _split_generators(self, dl_manager):
|
|
|
|
|
|
|
76 |
return [
|
77 |
datasets.SplitGenerator(
|
78 |
-
name=datasets.Split.TRAIN, gen_kwargs={
|
|
|
|
|
79 |
),
|
80 |
datasets.SplitGenerator(
|
81 |
-
name=datasets.Split.VALIDATION, gen_kwargs={
|
|
|
|
|
82 |
),
|
83 |
datasets.SplitGenerator(
|
84 |
-
name=datasets.Split.TEST, gen_kwargs={
|
|
|
|
|
85 |
),
|
86 |
]
|
87 |
|
|
|
15 |
|
16 |
|
17 |
import json
|
18 |
+
import os
|
19 |
|
20 |
import datasets
|
21 |
|
|
|
34 |
_HOMEPAGE = 'https://www.clarin.si/repository/xmlui/handle/11356/1404'
|
35 |
_LICENSE = ''
|
36 |
|
37 |
+
_URL = 'https://huggingface.co/datasets/classla/copa_hr/raw/main/data.zip'
|
38 |
_TRAINING_FILE = 'train.jsonl'
|
39 |
_DEV_FILE = 'val.jsonl'
|
40 |
_TEST_FILE = 'test.jsonl'
|
41 |
|
42 |
|
43 |
class CopaHr(datasets.GeneratorBasedBuilder):
|
44 |
+
VERSION = datasets.Version('1.0.0')
|
45 |
|
46 |
BUILDER_CONFIGS = [
|
47 |
datasets.BuilderConfig(
|
48 |
name='copa_hr',
|
49 |
version=VERSION,
|
|
|
50 |
description=''
|
51 |
)
|
52 |
]
|
|
|
74 |
)
|
75 |
|
76 |
def _split_generators(self, dl_manager):
|
77 |
+
"""Returns SplitGenerators."""
|
78 |
+
data_dir = dl_manager.download_and_extract(_URL)
|
79 |
+
|
80 |
return [
|
81 |
datasets.SplitGenerator(
|
82 |
+
name=datasets.Split.TRAIN, gen_kwargs={
|
83 |
+
'filepath': os.path.join(data_dir, _TRAINING_FILE),
|
84 |
+
'split': 'train'}
|
85 |
),
|
86 |
datasets.SplitGenerator(
|
87 |
+
name=datasets.Split.VALIDATION, gen_kwargs={
|
88 |
+
'filepath': os.path.join(data_dir, _DEV_FILE),
|
89 |
+
'split': 'dev'}
|
90 |
),
|
91 |
datasets.SplitGenerator(
|
92 |
+
name=datasets.Split.TEST, gen_kwargs={
|
93 |
+
'filepath': os.path.join(data_dir, _TEST_FILE),
|
94 |
+
'split': 'test'}
|
95 |
),
|
96 |
]
|
97 |
|
data.zip
ADDED
Binary file (48 kB). View file
|
|