Datasets:
Update script to use hosted data file
Browse files- 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 |
-
|
|
|
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, "
|
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")
|