"git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "2cb87c6bbc8040aa90dd8be8791958141353fca2"
Commit ff17f5dd authored by Scott Zhu's avatar Scott Zhu
Browse files

Revert "Remove the default None for data_path, which is a required param."

This reverts commit 6d829caa.
parent 57bc50c5
...@@ -52,7 +52,7 @@ def _file_to_word_ids(filename, word_to_id): ...@@ -52,7 +52,7 @@ def _file_to_word_ids(filename, word_to_id):
return [word_to_id[word] for word in data if word in word_to_id] return [word_to_id[word] for word in data if word in word_to_id]
def ptb_raw_data(data_path): def ptb_raw_data(data_path=None):
"""Load PTB raw data from data directory "data_path". """Load PTB raw data from data directory "data_path".
Reads PTB text files, converts strings to integer ids, Reads PTB text files, converts strings to integer ids,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment