Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
60fe116c
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
207
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
60fe116c
编写于
7月 27, 2021
作者:
H
Hui Zhang
提交者:
GitHub
7月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #732 from PaddlePaddle/dataset
fix dataset meta path
上级
a486f6e6
03eb343d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
8 deletion
+20
-8
examples/dataset/aidatatang_200zh/aidatatang_200zh.py
examples/dataset/aidatatang_200zh/aidatatang_200zh.py
+3
-1
examples/dataset/aishell/aishell.py
examples/dataset/aishell/aishell.py
+3
-1
examples/dataset/librispeech/librispeech.py
examples/dataset/librispeech/librispeech.py
+4
-2
examples/dataset/mini_librispeech/mini_librispeech.py
examples/dataset/mini_librispeech/mini_librispeech.py
+4
-2
examples/dataset/thchs30/thchs30.py
examples/dataset/thchs30/thchs30.py
+3
-1
examples/dataset/timit/timit.py
examples/dataset/timit/timit.py
+3
-1
未找到文件。
examples/dataset/aidatatang_200zh/aidatatang_200zh.py
浏览文件 @
60fe116c
...
...
@@ -102,7 +102,9 @@ def create_manifest(data_dir, manifest_path_prefix):
for
line
in
json_lines
:
fout
.
write
(
line
+
'
\n
'
)
with
open
(
dtype
+
'.meta'
,
'w'
)
as
f
:
manifest_dir
=
os
.
path
.
dirname
(
manifest_path_prefix
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
)
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
dtype
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
examples/dataset/aishell/aishell.py
浏览文件 @
60fe116c
...
...
@@ -103,7 +103,9 @@ def create_manifest(data_dir, manifest_path_prefix):
for
line
in
json_lines
:
fout
.
write
(
line
+
'
\n
'
)
with
open
(
dtype
+
'.meta'
,
'w'
)
as
f
:
manifest_dir
=
os
.
path
.
dirname
(
manifest_path_prefix
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
)
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
dtype
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
examples/dataset/librispeech/librispeech.py
浏览文件 @
60fe116c
...
...
@@ -114,8 +114,10 @@ def create_manifest(data_dir, manifest_path):
for
line
in
json_lines
:
out_file
.
write
(
line
+
'
\n
'
)
subset
=
manifest_path
with
open
(
subset
+
'.meta'
,
'w'
)
as
f
:
subset
=
os
.
path
.
splitext
(
manifest_path
)[
1
][
1
:]
manifest_dir
=
os
.
path
.
dirname
(
manifest_path
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
)
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
subset
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
examples/dataset/mini_librispeech/mini_librispeech.py
浏览文件 @
60fe116c
...
...
@@ -93,8 +93,10 @@ def create_manifest(data_dir, manifest_path):
for
line
in
json_lines
:
out_file
.
write
(
line
+
'
\n
'
)
subset
=
os
.
path
.
splitext
(
manifest_path
)[
1
]
with
open
(
subset
+
'.meta'
,
'w'
)
as
f
:
subset
=
os
.
path
.
splitext
(
manifest_path
)[
1
][
1
:]
manifest_dir
=
os
.
path
.
dirname
(
manifest_path
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
)
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
subset
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
examples/dataset/thchs30/thchs30.py
浏览文件 @
60fe116c
...
...
@@ -139,7 +139,9 @@ def create_manifest(data_dir, manifest_path_prefix):
for
line
in
json_lines
:
fout
.
write
(
line
+
'
\n
'
)
with
open
(
dtype
+
'.meta'
,
'w'
)
as
f
:
manifest_dir
=
os
.
path
.
dirname
(
manifest_path_prefix
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
)
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
dtype
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
examples/dataset/timit/timit.py
浏览文件 @
60fe116c
...
...
@@ -198,7 +198,9 @@ def create_manifest(data_dir, manifest_path_prefix):
for
line
in
json_lines
:
fout
.
write
(
line
+
'
\n
'
)
with
open
(
dtype
.
lower
()
+
'.meta'
,
'w'
)
as
f
:
manifest_dir
=
os
.
path
.
dirname
(
manifest_path_prefix
)
meta_path
=
os
.
path
.
join
(
manifest_dir
,
dtype
.
lower
())
+
'.meta'
with
open
(
meta_path
,
'w'
)
as
f
:
print
(
f
"
{
dtype
}
:"
,
file
=
f
)
print
(
f
"
{
total_num
}
utts"
,
file
=
f
)
print
(
f
"
{
total_sec
/
(
60
*
60
)
}
h"
,
file
=
f
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录