albertvillanova HF staff commited on
Commit
39a500e
1 Parent(s): fc14126

Support streaming (#2)

Browse files

- Host data file for English (d57b71524ebdcfe159eae0399912320cf3351262)
- Update script to use hosted data file (413e9a31347951779541fd1e8f08b7e5633243a3)

Files changed (2) hide show
  1. cmu_hinglish_dog.py +3 -2
  2. data-english.zip +3 -0
cmu_hinglish_dog.py CHANGED
@@ -51,7 +51,8 @@ This is a collection of text conversations in Hinglish (code mixing between Hind
51
 
52
  _HOMEPAGE = "http://festvox.org/cedar/data/notyet/"
53
  _URL_HINGLISH = "http://festvox.org/cedar/data/notyet/CMUHinglishDoG.zip"
54
- _URL_ENGLISH = "https://github.com/festvox/datasets-CMU_DoG/archive/master/Conversations.zip"
 
55
 
56
 
57
  class CMUHinglishDoG(datasets.GeneratorBasedBuilder):
@@ -95,7 +96,7 @@ class CMUHinglishDoG(datasets.GeneratorBasedBuilder):
95
  Refer here for the original script https://github.com/microsoft/GLUECoS/blob/7fdc51653e37a32aee17505c47b7d1da364fa77e/Data/Preprocess_Scripts/preprocess_mt_en_hi.py"""
96
 
97
  eng_path = dl_manager.download_and_extract(_URL_ENGLISH)
98
- data_dir_en = os.path.join(eng_path, "datasets-CMU_DoG-master", "Conversations")
99
 
100
  hi_en_path = dl_manager.download_and_extract(_URL_HINGLISH)
101
  data_dir_hi_en = os.path.join(hi_en_path, "CMUHinglishDoG", "Conversations_Hinglish")
51
 
52
  _HOMEPAGE = "http://festvox.org/cedar/data/notyet/"
53
  _URL_HINGLISH = "http://festvox.org/cedar/data/notyet/CMUHinglishDoG.zip"
54
+ # From: https://github.com/festvox/datasets-CMU_DoG/archive/master/Conversations.zip
55
+ _URL_ENGLISH = "data-english.zip"
56
 
57
 
58
  class CMUHinglishDoG(datasets.GeneratorBasedBuilder):
96
  Refer here for the original script https://github.com/microsoft/GLUECoS/blob/7fdc51653e37a32aee17505c47b7d1da364fa77e/Data/Preprocess_Scripts/preprocess_mt_en_hi.py"""
97
 
98
  eng_path = dl_manager.download_and_extract(_URL_ENGLISH)
99
+ data_dir_en = os.path.join(eng_path, "Conversations")
100
 
101
  hi_en_path = dl_manager.download_and_extract(_URL_HINGLISH)
102
  data_dir_hi_en = os.path.join(hi_en_path, "CMUHinglishDoG", "Conversations_Hinglish")
data-english.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d55c64f8d870ad3e775e98a4aa21d99456495132a05a85cd653df433812ccb77
3
+ size 8145301