ujs commited on
Commit
c1d3d70
1 Parent(s): f9292a2

Removed prints

Browse files
Files changed (1) hide show
  1. hinglish.py +7 -9
hinglish.py CHANGED
@@ -13,16 +13,16 @@ _ANNOT_URL = {
13
  "test": "./data/metadata-test.csv"
14
  }
15
 
16
- _DATA_URL = [
17
- "https://huggingface.co/datasets/ujs/hinglish/resolve/main/data/train.tar.gz",
18
- "https://huggingface.co/datasets/ujs/hinglish/resolve/main/data/test.tar.gz"
19
- ]
20
-
21
  # _DATA_URL = [
22
- # "./data/train.tar.gz",
23
- # "./data/test.tar.gz"
24
  # ]
25
 
 
 
 
 
 
26
  _DESCRIPTION = """\
27
  A Hugginface version of the Hindi-English code-switched dataset from OpenSLR-104.
28
  """
@@ -77,13 +77,11 @@ class HinglishDataset(datasets.GeneratorBasedBuilder):
77
  }
78
  inside_clips_dir = False
79
  id_ = 0
80
- # print(examples)
81
  for path, f in audio_files:
82
  if path.startswith(path_to_clips):
83
  inside_clips_dir = True
84
  if path in examples:
85
  audio = {"path": path, "bytes": f.read()}
86
- # print(audio)
87
  yield id_, {**examples[path], "audio": audio}
88
  id_ += 1
89
  elif inside_clips_dir:
 
13
  "test": "./data/metadata-test.csv"
14
  }
15
 
 
 
 
 
 
16
  # _DATA_URL = [
17
+ # "https://huggingface.co/datasets/ujs/hinglish/resolve/main/data/train.tar.gz",
18
+ # "https://huggingface.co/datasets/ujs/hinglish/resolve/main/data/test.tar.gz"
19
  # ]
20
 
21
+ _DATA_URL = [
22
+ "./data/train.tar.gz",
23
+ "./data/test.tar.gz"
24
+ ]
25
+
26
  _DESCRIPTION = """\
27
  A Hugginface version of the Hindi-English code-switched dataset from OpenSLR-104.
28
  """
 
77
  }
78
  inside_clips_dir = False
79
  id_ = 0
 
80
  for path, f in audio_files:
81
  if path.startswith(path_to_clips):
82
  inside_clips_dir = True
83
  if path in examples:
84
  audio = {"path": path, "bytes": f.read()}
 
85
  yield id_, {**examples[path], "audio": audio}
86
  id_ += 1
87
  elif inside_clips_dir: