Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
a830020d
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a830020d
编写于
2月 06, 2018
作者:
Y
yangyaming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish some comments.
上级
9e9cc524
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
10 deletion
+12
-10
fluid/DeepASR/data_utils/data_reader.py
fluid/DeepASR/data_utils/data_reader.py
+12
-10
未找到文件。
fluid/DeepASR/data_utils/data_reader.py
浏览文件 @
a830020d
...
...
@@ -16,7 +16,7 @@ import data_utils.augmentor.trans_add_delta as trans_add_delta
class
SampleInfo
(
object
):
"""SampleInfo holds the necessary information to load a
n ex
ample from disk.
"""SampleInfo holds the necessary information to load a
s
ample from disk.
Args:
feature_bin_path (str): File containing the feature data.
...
...
@@ -46,10 +46,10 @@ class SampleInfo(object):
class
SampleInfoBucket
(
object
):
"""SampleInfoBucket contains paths of several description files. Feature
description file contains necessary information
to access samples' feature
data
and label description file contains necessary information to
access samples' label data. SampleInfoBucket is the minimum unit to do
shuffle.
description file contains necessary information
(including path of binary
data
, sample start position, sample byte number etc.) to access samples'
feature data and the same with the label description file. SampleInfoBucket
is the minimum unit to do
shuffle.
Args:
feature_bin_paths (list|tuple): Files containing the binary feature
...
...
@@ -114,15 +114,17 @@ class EpochEndSignal():
class
DataReader
(
object
):
"""DataReader provides basic audio sample preprocessing pipeline including
I/O and augmentation transforming
.
data loading and data augmentation
.
Args:
feature_file_list (str): File containing feature data related files.
label_file_list (str): File containing label data related files.
feature_file_list (str): File containing paths of feature data file and
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
augmentation applied.
drop_frame_len (int):
Lower threshold bound to filter samples having
long sentence
.
drop_frame_len (int):
Samples whose label length above the value will be
dropped
.
process_num (int): Number of processes for processing data.
sample_buffer_size (int): Buffer size to indicate the maximum samples
cached.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录