From cb74803957d822229a13b4af214723d2a80a6252 Mon Sep 17 00:00:00 2001 From: Zhao Yuting <91456992+THUzyt21@users.noreply.github.com> Date: Wed, 31 Aug 2022 20:03:44 +0800 Subject: [PATCH] fix the bug "can't start ASR streaming_server" (#2337) * Update application.yaml --- .../conf/application.yaml | 1 + examples/iwslt2012/punc0/README.md | 54 ++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/demos/streaming_asr_server/conf/application.yaml b/demos/streaming_asr_server/conf/application.yaml index 683d86f0..a89d312a 100644 --- a/demos/streaming_asr_server/conf/application.yaml +++ b/demos/streaming_asr_server/conf/application.yaml @@ -28,6 +28,7 @@ asr_online: sample_rate: 16000 cfg_path: decode_method: + num_decoding_left_chunks: -1 force_yes: True device: 'cpu' # cpu or gpu:id decode_method: "attention_rescoring" diff --git a/examples/iwslt2012/punc0/README.md b/examples/iwslt2012/punc0/README.md index 6caa9710..9b9f3a91 100644 --- a/examples/iwslt2012/punc0/README.md +++ b/examples/iwslt2012/punc0/README.md @@ -18,12 +18,62 @@ ./run.sh --stage 3 --stop-stage 3 ``` ## Pretrained Model -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). +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) + +[ernie-3.0-base.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-base.tar.gz) + +[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 +- 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|