提交 a830020d 编写于 作者: Y yangyaming

Polish some comments.

上级 9e9cc524
...@@ -16,7 +16,7 @@ import data_utils.augmentor.trans_add_delta as trans_add_delta ...@@ -16,7 +16,7 @@ import data_utils.augmentor.trans_add_delta as trans_add_delta
class SampleInfo(object): class SampleInfo(object):
"""SampleInfo holds the necessary information to load an example from disk. """SampleInfo holds the necessary information to load a sample from disk.
Args: Args:
feature_bin_path (str): File containing the feature data. feature_bin_path (str): File containing the feature data.
...@@ -46,10 +46,10 @@ class SampleInfo(object): ...@@ -46,10 +46,10 @@ class SampleInfo(object):
class SampleInfoBucket(object): class SampleInfoBucket(object):
"""SampleInfoBucket contains paths of several description files. Feature """SampleInfoBucket contains paths of several description files. Feature
description file contains necessary information to access samples' feature description file contains necessary information (including path of binary
data and label description file contains necessary information to data, sample start position, sample byte number etc.) to access samples'
access samples' label data. SampleInfoBucket is the minimum unit to do feature data and the same with the label description file. SampleInfoBucket
shuffle. is the minimum unit to do shuffle.
Args: Args:
feature_bin_paths (list|tuple): Files containing the binary feature feature_bin_paths (list|tuple): Files containing the binary feature
...@@ -114,15 +114,17 @@ class EpochEndSignal(): ...@@ -114,15 +114,17 @@ class EpochEndSignal():
class DataReader(object): class DataReader(object):
"""DataReader provides basic audio sample preprocessing pipeline including """DataReader provides basic audio sample preprocessing pipeline including
I/O and augmentation transforming. data loading and data augmentation.
Args: Args:
feature_file_list (str): File containing feature data related files. feature_file_list (str): File containing paths of feature data file and
label_file_list (str): File containing label data related files. corresponding description file.
label_file_list (str): File containing paths of label data file and
corresponding description file.
frame_dim (int): The final feature dimension of one frame after all frame_dim (int): The final feature dimension of one frame after all
augmentation applied. augmentation applied.
drop_frame_len (int): Lower threshold bound to filter samples having drop_frame_len (int): Samples whose label length above the value will be
long sentence. dropped.
process_num (int): Number of processes for processing data. process_num (int): Number of processes for processing data.
sample_buffer_size (int): Buffer size to indicate the maximum samples sample_buffer_size (int): Buffer size to indicate the maximum samples
cached. cached.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册