Datasets:
Size:
10K - 100K
License:
:+1: fix missing names
Browse files
README.md
CHANGED
|
@@ -81,12 +81,12 @@ dataset: ds.DatasetDict = ds.load_dataset("hpprc/jsick")
|
|
| 81 |
print(dataset)
|
| 82 |
# DatasetDict({
|
| 83 |
# train: Dataset({
|
| 84 |
-
# features: ['id', 'premise', 'hypothesis', 'label', '
|
| 85 |
-
# num_rows:
|
| 86 |
# })
|
| 87 |
# test: Dataset({
|
| 88 |
-
# features: ['id', 'premise', 'hypothesis', 'label', '
|
| 89 |
-
# num_rows:
|
| 90 |
# })
|
| 91 |
# })
|
| 92 |
|
|
@@ -94,12 +94,12 @@ dataset: ds.DatasetDict = ds.load_dataset("hpprc/jsick", name="original")
|
|
| 94 |
print(dataset)
|
| 95 |
# DatasetDict({
|
| 96 |
# train: Dataset({
|
| 97 |
-
# features: ['id', '
|
| 98 |
-
# num_rows:
|
| 99 |
# })
|
| 100 |
# test: Dataset({
|
| 101 |
-
# features: ['id', '
|
| 102 |
-
# num_rows:
|
| 103 |
# })
|
| 104 |
# })
|
| 105 |
```
|
|
|
|
| 81 |
print(dataset)
|
| 82 |
# DatasetDict({
|
| 83 |
# train: Dataset({
|
| 84 |
+
# 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'],
|
| 85 |
+
# num_rows: 4500
|
| 86 |
# })
|
| 87 |
# test: Dataset({
|
| 88 |
+
# 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'],
|
| 89 |
+
# num_rows: 4927
|
| 90 |
# })
|
| 91 |
# })
|
| 92 |
|
|
|
|
| 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', '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'],
|
| 102 |
+
# num_rows: 4927
|
| 103 |
# })
|
| 104 |
# })
|
| 105 |
```
|
jsick.py
CHANGED
|
@@ -144,7 +144,12 @@ class JSICKDataset(ds.GeneratorBasedBuilder):
|
|
| 144 |
)
|
| 145 |
|
| 146 |
def _split_generators(self, dl_manager: ds.DownloadManager):
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
df: pd.DataFrame = pd.read_table(data_path, sep="\t", header=0)
|
| 149 |
|
| 150 |
if self.config.name in ["stress", "stress_original"]:
|
|
|
|
| 144 |
)
|
| 145 |
|
| 146 |
def _split_generators(self, dl_manager: ds.DownloadManager):
|
| 147 |
+
if self.config.name in ["base", "original"]:
|
| 148 |
+
url = _URLS["base"]
|
| 149 |
+
elif self.config.name in ["stress", "stress_original"]:
|
| 150 |
+
url = _URLS["stress"]
|
| 151 |
+
|
| 152 |
+
data_path = dl_manager.download_and_extract(url)
|
| 153 |
df: pd.DataFrame = pd.read_table(data_path, sep="\t", header=0)
|
| 154 |
|
| 155 |
if self.config.name in ["stress", "stress_original"]:
|