Datasets:
Size:
10K - 100K
License:
:sparkles: fix columns name
Browse files
README.md
CHANGED
@@ -37,10 +37,10 @@ task_ids:
|
|
37 |
- [Dataset Structure](#dataset-structure)
|
38 |
- [Data Instances](#data-instances)
|
39 |
- [base](#base)
|
40 |
-
- [
|
41 |
- [Data Fields](#data-fields)
|
42 |
- [base](#base-1)
|
43 |
-
- [original](#original
|
44 |
- [Data Splits](#data-splits)
|
45 |
- [Annotations](#annotations)
|
46 |
- [Additional Information](#additional-information)
|
@@ -90,16 +90,12 @@ print(dataset)
|
|
90 |
# })
|
91 |
# })
|
92 |
|
93 |
-
dataset: ds.DatasetDict = ds.load_dataset("hpprc/jsick", name="
|
94 |
print(dataset)
|
95 |
# DatasetDict({
|
96 |
-
# train: Dataset({
|
97 |
-
# features: ['id', 'premise', 'hypothesis', 'label', 'score', 'sentence_A_En', 'sentence_B_En', 'entailment_label_En', 'relatedness_score_En', 'corr_entailment_labelAB_En', 'corr_entailment_labelBA_En', 'image_ID', 'original_caption', 'semtag_short', 'semtag_long'],
|
98 |
-
# num_rows: 4500
|
99 |
-
# })
|
100 |
# test: Dataset({
|
101 |
-
# features: ['id', 'premise', 'hypothesis', 'label', 'score', '
|
102 |
-
# num_rows:
|
103 |
# })
|
104 |
# })
|
105 |
```
|
@@ -110,31 +106,30 @@ print(dataset)
|
|
110 |
An example of looks as follows:
|
111 |
|
112 |
```json
|
113 |
-
{
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
```
|
123 |
|
124 |
-
####
|
125 |
|
126 |
An example of looks as follows:
|
127 |
|
128 |
```json
|
129 |
-
{
|
130 |
-
'id': 12,
|
131 |
-
'sentence_A_Ja': '่ฅ่
ใใใใใใผใซ้ธๆใ่ฆใฆใใ',
|
132 |
-
'sentence_B_Ja': 'ใใใใใผใซ้ธๆใ่ฅ่
ใ่ฆใฆใใ',
|
133 |
-
'entailment_label_Ja': 0,
|
134 |
-
'heuristics': 'overlap-full',
|
135 |
-
'number_of_NPs': 2,
|
136 |
-
'semtag': 'scrambling'
|
137 |
-
}
|
138 |
```
|
139 |
|
140 |
### Data Fields
|
|
|
37 |
- [Dataset Structure](#dataset-structure)
|
38 |
- [Data Instances](#data-instances)
|
39 |
- [base](#base)
|
40 |
+
- [stress](#stress)
|
41 |
- [Data Fields](#data-fields)
|
42 |
- [base](#base-1)
|
43 |
+
- [original](#original)
|
44 |
- [Data Splits](#data-splits)
|
45 |
- [Annotations](#annotations)
|
46 |
- [Additional Information](#additional-information)
|
|
|
90 |
# })
|
91 |
# })
|
92 |
|
93 |
+
dataset: ds.DatasetDict = ds.load_dataset("hpprc/jsick", name="stress")
|
94 |
print(dataset)
|
95 |
# DatasetDict({
|
|
|
|
|
|
|
|
|
96 |
# test: Dataset({
|
97 |
+
# features: ['id', 'premise', 'hypothesis', 'label', 'score', 'sentence_A_Ja_origin', 'entailment_label_origin', 'relatedness_score_Ja_origin', 'rephrase_type', 'case_particles'],
|
98 |
+
# num_rows: 900
|
99 |
# })
|
100 |
# })
|
101 |
```
|
|
|
106 |
An example of looks as follows:
|
107 |
|
108 |
```json
|
109 |
+
{'id': 1,
|
110 |
+
'premise': 'ๅญไพใใกใฎใฐใซใผใใๅบญใง้ใใงใใฆใๅพใใฎๆนใซใฏๅนดใๅใฃใ็ทๆงใ็ซใฃใฆใใ',
|
111 |
+
'hypothesis': 'ๅบญใซใใ็ทใฎๅญใใกใฎใฐใซใผใใ้ใใงใใฆใ็ทๆงใๅพใใฎๆนใซ็ซใฃใฆใใ',
|
112 |
+
'label': 1,
|
113 |
+
'score': 3.700000047683716,
|
114 |
+
'sentence_A_En': 'A group of kids is playing in a yard and an old man is standing in the background',
|
115 |
+
'sentence_B_En': 'A group of boys in a yard is playing and a man is standing in the background',
|
116 |
+
'entailment_label_En': 1,
|
117 |
+
'relatedness_score_En': 4.5,
|
118 |
+
'corr_entailment_labelAB_En': 'nan',
|
119 |
+
'corr_entailment_labelBA_En': 'nan',
|
120 |
+
'image_ID': '3155657768_b83a7831e5.jpg',
|
121 |
+
'original_caption': 'A group of children playing in a yard , a man in the background .',
|
122 |
+
'semtag_short': 'nan',
|
123 |
+
'semtag_long': 'nan',
|
124 |
}
|
125 |
```
|
126 |
|
127 |
+
#### stress
|
128 |
|
129 |
An example of looks as follows:
|
130 |
|
131 |
```json
|
132 |
+
{'id': '5818_de_d', 'premise': 'ๅฅณๆง็ซใฎ่ฟใใใณในใใใฆใใ', 'hypothesis': '็ซใฎ่ฟใใงใใณในใใใฆใใๅฅณๆงใฏไธไบบใใใชใ', 'label': 2, 'score': 4.0, 'sentence_A_Ja_origin': 'ๅฅณๆงใ็ซใฎ่ฟใใงใใณในใใใฆใใ', 'entailment_label_origin': 2, 'relatedness_score_Ja_origin': 3.700000047683716, 'rephrase_type': 'd', 'case_particles': 'de'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
```
|
134 |
|
135 |
### Data Fields
|
jsick.py
CHANGED
@@ -70,10 +70,10 @@ class JSICKDataset(ds.GeneratorBasedBuilder):
|
|
70 |
"hypothesis": ds.Value("string"),
|
71 |
"label": labels,
|
72 |
"score": ds.Value("float32"),
|
73 |
-
"
|
74 |
-
"
|
75 |
-
"
|
76 |
-
"
|
77 |
"corr_entailment_labelAB_En": ds.Value("string"),
|
78 |
"corr_entailment_labelBA_En": ds.Value("string"),
|
79 |
"image_ID": ds.Value("string"),
|
@@ -176,6 +176,10 @@ class JSICKDataset(ds.GeneratorBasedBuilder):
|
|
176 |
"sentence_B_Ja": "hypothesis",
|
177 |
"entailment_label_Ja": "label",
|
178 |
"relatedness_score_Ja": "score",
|
|
|
|
|
|
|
|
|
179 |
}
|
180 |
)
|
181 |
|
|
|
70 |
"hypothesis": ds.Value("string"),
|
71 |
"label": labels,
|
72 |
"score": ds.Value("float32"),
|
73 |
+
"premise_en": ds.Value("string"),
|
74 |
+
"hypothesis_en": ds.Value("string"),
|
75 |
+
"label_en": labels,
|
76 |
+
"score_en": ds.Value("float32"),
|
77 |
"corr_entailment_labelAB_En": ds.Value("string"),
|
78 |
"corr_entailment_labelBA_En": ds.Value("string"),
|
79 |
"image_ID": ds.Value("string"),
|
|
|
176 |
"sentence_B_Ja": "hypothesis",
|
177 |
"entailment_label_Ja": "label",
|
178 |
"relatedness_score_Ja": "score",
|
179 |
+
"sentence_A_En": "premise_en",
|
180 |
+
"sentence_B_En": "hypothesis_en",
|
181 |
+
"entailment_label_En": "label_en",
|
182 |
+
"relatedness_score_En": "score_en",
|
183 |
}
|
184 |
)
|
185 |
|