Datasets:
mteb
/

Modalities:
Text
Formats:
json
Libraries:
Datasets
Dask
nouamanetazi HF staff commited on
Commit
3a021c0
1 Parent(s): 74d54a4

Update amazon_massive_intent.py

Browse files
Files changed (1) hide show
  1. amazon_massive_intent.py +4 -4
amazon_massive_intent.py CHANGED
@@ -14,8 +14,8 @@ _DESCRIPTION = """\
14
  Utterances span 60 intents and include 55 slot types. MASSIVE was created by localizing
15
  the SLURP dataset, composed of general Intelligent Voice Assistant single-shot interactions.
16
  """
17
- # ARCHIVE_PATH = f"{os.path.dirname(__file__)}/amazon-massive-dataset-1.0.tar.gz"
18
- _URL = "https://huggingface.co/datasets/mteb/amazon_massive_intent/raw/main/amazon-massive-dataset-1.0.tar.gz"
19
 
20
  _LANGUAGES = {
21
  "af": "af-ZA",
@@ -169,7 +169,7 @@ class MASSIVE(datasets.GeneratorBasedBuilder):
169
  def _split_generators(self, dl_manager):
170
 
171
  # path = dl_manager.download_and_extract(_URL)
172
- archive_path = dl_manager.download(_URL)
173
  files = dl_manager.iter_archive(ARCHIVE_PATH)
174
 
175
  return [
@@ -216,4 +216,4 @@ class MASSIVE(datasets.GeneratorBasedBuilder):
216
  "label_text": data["intent"],
217
  "text": data["utt"],
218
  }
219
- key_ += 1
 
14
  Utterances span 60 intents and include 55 slot types. MASSIVE was created by localizing
15
  the SLURP dataset, composed of general Intelligent Voice Assistant single-shot interactions.
16
  """
17
+ ARCHIVE_PATH = f"{os.path.dirname(__file__)}/amazon-massive-dataset-1.0.tar.gz"
18
+
19
 
20
  _LANGUAGES = {
21
  "af": "af-ZA",
 
169
  def _split_generators(self, dl_manager):
170
 
171
  # path = dl_manager.download_and_extract(_URL)
172
+ # archive_path = dl_manager.download(_URL)
173
  files = dl_manager.iter_archive(ARCHIVE_PATH)
174
 
175
  return [
 
216
  "label_text": data["intent"],
217
  "text": data["utt"],
218
  }
219
+ key_ += 1