mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
Base ds_dataset_path on ds_importer by default
This commit is contained in:
parent
340d31ae9c
commit
1ad35baf4a
@ -90,8 +90,8 @@
|
||||
"from util.text import sparse_tensor_value_to_texts, wers\n",
|
||||
"from tensorflow.python.ops import ctc_ops\n",
|
||||
"\n",
|
||||
"ds_importer = os.environ.get('ds_importer', 'ted_lium')\n",
|
||||
"ds_dataset_path = os.environ.get('ds_dataset_path', './data/ted')\n",
|
||||
"ds_importer = os.environ.get('ds_importer', 'ted')\n",
|
||||
"ds_dataset_path = os.environ.get('ds_dataset_path', os.path.join('./data', ds_importer))\n",
|
||||
"\n",
|
||||
"import importlib\n",
|
||||
"ds_importer_module = importlib.import_module('util.importers.%s' % ds_importer)\n",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user