Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
cb37edb8
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
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看板
提交
cb37edb8
编写于
10月 19, 2022
作者:
W
WongLaw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revised Rhythm Prediction Function, test=tts
上级
4fe6c0dc
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
20 addition
and
83333 deletion
+20
-83333
examples/other/rhy/000001-010000.txt
examples/other/rhy/000001-010000.txt
+0
-20000
examples/other/rhy/README.md
examples/other/rhy/README.md
+3
-57
examples/other/rhy/label_train-set.txt
examples/other/rhy/label_train-set.txt
+0
-63267
examples/other/rhy/local/data.sh
examples/other/rhy/local/data.sh
+11
-3
examples/other/rhy/local/pre_for_sp_aishell.py
examples/other/rhy/local/pre_for_sp_aishell.py
+1
-1
examples/other/rhy/local/pre_for_sp_csmsc.py
examples/other/rhy/local/pre_for_sp_csmsc.py
+1
-1
examples/other/rhy/run.sh
examples/other/rhy/run.sh
+4
-4
未找到文件。
examples/other/rhy/000001-010000.txt
已删除
100644 → 0
浏览文件 @
4fe6c0dc
此差异已折叠。
点击以展开。
examples/other/rhy/README.md
浏览文件 @
cb37edb8
#
Punctuation Restoration with IWLST2012-Zh
#
Rhythm Prediction with CSMSC and AiShell3
## Get Started
## Get Started
### Data Preprocessing
### Data Preprocessing
...
@@ -20,60 +20,6 @@
...
@@ -20,60 +20,6 @@
## Pretrained Model
## Pretrained Model
The pretrained model can be downloaded here:
The pretrained model can be downloaded here:
[
ernie_linear_p3_iwslt2012_zh_ckpt_0.1.1.zip
](
https://paddlespeech.bj.bcebos.com/text/ernie_linear_p3_iwslt2012_zh_ckpt_0.1.1.zip
)
[
snapshot_iter_2600.pdz
](
https://paddlespeech.bj.bcebos.com/Rhy_Prediction/snapshot_iter_2600.pdz
)
[
ernie-3.0-base.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-base.tar.gz
)
And you should put it into
`exp/ YOUR EXP /checkpoints`
folder.
\ No newline at end of file
[
ernie-3.0-medium.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-medium.tar.gz
)
[
ernie-3.0-micro.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-micro.tar.gz
)
[
ernie-mini.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-mini.tar.gz
)
[
ernie-nano.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-nano.tar.gz
)
[
ernie-tiny.tar.gz
](
https://paddlespeech.bj.bcebos.com/punc_restore/ernie-tiny.tar.gz
)
### Test Result
-
Ernie 1.0
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.510955 |0.526462 |0.820755 |0.619391|
|Recall |0.517433 |0.564179 |0.861386 |0.647666|
|F1 |0.514173 |0.544669 |0.840580 |0.633141|
-
Ernie-tiny
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.733177 |0.721448 |0.754717 |0.736447|
|Recall |0.380740 |0.524646 |0.733945 |0.546443|
|F1 |0.501204 |0.607506 |0.744186 |0.617632|
-
Ernie-3.0-base-zh
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.805947 |0.764160 |0.858491 |0.809532|
|Recall |0.399070 |0.567978 |0.850467 |0.605838|
|F1 |0.533817 |0.651623 |0.854460 |0.679967|
-
Ernie-3.0-medium-zh
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.730829 |0.699164 |0.707547 |0.712514|
|Recall |0.388196 |0.533286 |0.797872 |0.573118|
|F1 |0.507058 |0.605062 |0.750000 |0.620707|
-
Ernie-3.0-mini-zh
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.757433 |0.708449 |0.707547 |0.724477|
|Recall |0.355752 |0.506977 |0.735294 |0.532674|
|F1 |0.484121 |0.591015 |0.721154 |0.598763|
-
Ernie-3.0-micro-zh
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.733959 |0.679666 |0.726415 |0.713347|
|Recall |0.332742 |0.483487 |0.712963 |0.509731|
|F1 |0.457896 |0.565033 |0.719626 |0.580852|
-
Ernie-3.0-nano-zh
| |COMMA | PERIOD | QUESTION | OVERALL|
|:-----:|:-----:|:-----:|:-----:|:-----:|
|Precision |0.693271 |0.682451 |0.754717 |0.710146|
|Recall |0.327784 |0.491968 |0.666667 |0.495473|
|F1 |0.445114 |0.571762 |0.707965 |0.574947|
examples/other/rhy/label_train-set.txt
已删除
100755 → 0
浏览文件 @
4fe6c0dc
此差异已折叠。
点击以展开。
examples/other/rhy/local/data.sh
浏览文件 @
cb37edb8
#!/bin/bash
#!/bin/bash
if
[
!
-f
000001-010000.txt
]
;
then
wget https://paddlespeech.bj.bcebos.com/Rhy_Prediction/000001-010000.txt
fi
if
[
!
-f
label_train-set.txt
]
;
then
wget https://paddlespeech.bj.bcebos.com/Rhy_Prediction/label_train-set.txt
fi
aishell_data
=
$1
aishell_data
=
$1
biaobei
_data
=
$2
csmsc
_data
=
$2
processed_path
=
$3
processed_path
=
$3
python3 ./local/pre_for_sp_
biaobei
.py
\
python3 ./local/pre_for_sp_
csmsc
.py
\
--data
=
${
biaobei
_data
}
\
--data
=
${
csmsc
_data
}
\
--processed_path
=
${
processed_path
}
--processed_path
=
${
processed_path
}
python3 ./local/pre_for_sp_aishell.py
\
python3 ./local/pre_for_sp_aishell.py
\
...
...
examples/other/rhy/local/pre_for_sp_aishell.py
浏览文件 @
cb37edb8
...
@@ -26,7 +26,7 @@ def pre_and_write(data, file):
...
@@ -26,7 +26,7 @@ def pre_and_write(data, file):
def
main
():
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
"Train a
FastSpeech2
model."
)
parser
=
argparse
.
ArgumentParser
(
description
=
"Train a
Rhy prediction
model."
)
parser
.
add_argument
(
"--data"
,
type
=
str
,
default
=
"label_train-set.txt"
)
parser
.
add_argument
(
"--data"
,
type
=
str
,
default
=
"label_train-set.txt"
)
parser
.
add_argument
(
parser
.
add_argument
(
"--processed_path"
,
type
=
str
,
default
=
"../data/rhy_predict"
)
"--processed_path"
,
type
=
str
,
default
=
"../data/rhy_predict"
)
...
...
examples/other/rhy/local/pre_for_sp_
biaobei
.py
→
examples/other/rhy/local/pre_for_sp_
csmsc
.py
浏览文件 @
cb37edb8
...
@@ -24,7 +24,7 @@ def pre_and_write(data, file):
...
@@ -24,7 +24,7 @@ def pre_and_write(data, file):
def
main
():
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
"Train a
FastSpeech2
model."
)
parser
=
argparse
.
ArgumentParser
(
description
=
"Train a
Rhy prediction
model."
)
parser
.
add_argument
(
"--data"
,
type
=
str
,
default
=
"label_train-set.txt"
)
parser
.
add_argument
(
"--data"
,
type
=
str
,
default
=
"label_train-set.txt"
)
parser
.
add_argument
(
parser
.
add_argument
(
"--processed_path"
,
type
=
str
,
default
=
"../data/rhy_predict"
)
"--processed_path"
,
type
=
str
,
default
=
"../data/rhy_predict"
)
...
...
examples/other/rhy/run.sh
浏览文件 @
cb37edb8
...
@@ -3,11 +3,11 @@ set -e
...
@@ -3,11 +3,11 @@ set -e
source
path.sh
source
path.sh
gpus
=
1
gpus
=
1
stage
=
3
stage
=
0
stop_stage
=
3
stop_stage
=
0
aishell_data
=
label_train-set.txt
aishell_data
=
label_train-set.txt
biaobei
_data
=
000001-010000.txt
csmsc
_data
=
000001-010000.txt
processed_path
=
data/rhy_predict
processed_path
=
data/rhy_predict
conf_path
=
conf/default.yaml
conf_path
=
conf/default.yaml
...
@@ -22,7 +22,7 @@ source ${MAIN_ROOT}/utils/parse_options.sh || exit 1
...
@@ -22,7 +22,7 @@ source ${MAIN_ROOT}/utils/parse_options.sh || exit 1
if
[
${
stage
}
-le
0
]
&&
[
${
stop_stage
}
-ge
0
]
;
then
if
[
${
stage
}
-le
0
]
&&
[
${
stop_stage
}
-ge
0
]
;
then
# prepare data
# prepare data
./local/data.sh
${
aishell_data
}
${
biaobei
_data
}
${
processed_path
}
./local/data.sh
${
aishell_data
}
${
csmsc
_data
}
${
processed_path
}
fi
fi
if
[
${
stage
}
-le
1
]
&&
[
${
stop_stage
}
-ge
1
]
;
then
if
[
${
stage
}
-le
1
]
&&
[
${
stop_stage
}
-ge
1
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录