albertvillanova HF staff commited on
Commit
413e9a3
1 Parent(s): d57b715

Update script to use hosted data file

Browse files
Files changed (1) hide show
  1. cmu_hinglish_dog.py +3 -2
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")