Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Evelina Bakhturina <ebakhturina@nvidia.com>
- Loading branch information
Showing
16 changed files
with
1,161 additions
and
1,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os | ||
import subprocess | ||
|
||
from nemo import logging | ||
|
||
|
||
def download_wkt2(data_dir): | ||
if os.path.exists(data_dir): | ||
logging.warning(f'Folder {data_dir} found. Skipping download.') | ||
return | ||
os.makedirs(os.path.join(data_dir, 'lm'), exist_ok=True) | ||
logging.warning(f'Data not found at {data_dir}. Downloading wikitext-2 to {data_dir}/lm/') | ||
data_dir = 'data/lm/wikitext-2' | ||
subprocess.call('get_wkt2.sh') | ||
return data_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.