hpprc commited on
Commit
b08cf4a
1 Parent(s): 9ae8c82

:+1: fix missing names

Browse files
Files changed (2) hide show
  1. README.md +8 -8
  2. jsick.py +6 -1
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', 'heuristics', 'number_of_NPs', 'semtag'],
85
- # num_rows: 13680
86
  # })
87
  # test: Dataset({
88
- # features: ['id', 'premise', 'hypothesis', 'label', 'heuristics', 'number_of_NPs', 'semtag'],
89
- # num_rows: 720
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', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
98
- # num_rows: 13680
99
  # })
100
  # test: Dataset({
101
- # features: ['id', 'sentence_A_Ja', 'sentence_B_Ja', 'entailment_label_Ja', 'heuristics', 'number_of_NPs', 'semtag'],
102
- # num_rows: 720
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
- data_path = dl_manager.download_and_extract(_URLS[self.config.name])
 
 
 
 
 
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"]: