From 88501fc32a50b129156e2075be6b420bc9364e7b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 May 2022 07:27:39 +0000 Subject: [PATCH] fix server doc and decode_method --- demos/streaming_asr_server/README.md | 72 ------------------- demos/streaming_asr_server/README_cn.md | 72 ------------------- .../server/engine/asr/online/asr_engine.py | 2 +- 3 files changed, 1 insertion(+), 145 deletions(-) diff --git a/demos/streaming_asr_server/README.md b/demos/streaming_asr_server/README.md index 8423e5d0..909f5a4c 100644 --- a/demos/streaming_asr_server/README.md +++ b/demos/streaming_asr_server/README.md @@ -57,42 +57,6 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav [2022-04-21 15:52:18,727] [ INFO] - /home/users/xiongxinlei/.paddlespeech/models/conformer_online_multicn-zh-16k/exp/chunk_conformer/checkpoints/multi_cn.pdparams [2022-04-21 15:52:19,446] [ INFO] - start to create the stream conformer asr engine [2022-04-21 15:52:19,473] [ INFO] - model name: conformer_online - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform [2022-04-21 15:52:21,731] [ INFO] - create the transformer like model success [2022-04-21 15:52:21,733] [ INFO] - Initialize ASR server engine successfully. INFO: Started server process [11173] @@ -134,42 +98,6 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav [2022-04-21 15:52:18,727] [ INFO] - /home/users/xiongxinlei/.paddlespeech/models/conformer_online_multicn-zh-16k/exp/chunk_conformer/checkpoints/multi_cn.pdparams [2022-04-21 15:52:19,446] [ INFO] - start to create the stream conformer asr engine [2022-04-21 15:52:19,473] [ INFO] - model name: conformer_online - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform [2022-04-21 15:52:21,731] [ INFO] - create the transformer like model success [2022-04-21 15:52:21,733] [ INFO] - Initialize ASR server engine successfully. INFO: Started server process [11173] diff --git a/demos/streaming_asr_server/README_cn.md b/demos/streaming_asr_server/README_cn.md index bda545dd..0f1ae1c1 100644 --- a/demos/streaming_asr_server/README_cn.md +++ b/demos/streaming_asr_server/README_cn.md @@ -64,42 +64,6 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav [2022-04-21 15:52:18,727] [ INFO] - /home/users/xiongxinlei/.paddlespeech/models/conformer_online_multicn-zh-16k/exp/chunk_conformer/checkpoints/multi_cn.pdparams [2022-04-21 15:52:19,446] [ INFO] - start to create the stream conformer asr engine [2022-04-21 15:52:19,473] [ INFO] - model name: conformer_online - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform [2022-04-21 15:52:21,731] [ INFO] - create the transformer like model success [2022-04-21 15:52:21,733] [ INFO] - Initialize ASR server engine successfully. INFO: Started server process [11173] @@ -141,42 +105,6 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav [2022-04-21 15:52:18,727] [ INFO] - /home/users/xiongxinlei/.paddlespeech/models/conformer_online_multicn-zh-16k/exp/chunk_conformer/checkpoints/multi_cn.pdparams [2022-04-21 15:52:19,446] [ INFO] - start to create the stream conformer asr engine [2022-04-21 15:52:19,473] [ INFO] - model name: conformer_online - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform - set kaiming_uniform [2022-04-21 15:52:21,731] [ INFO] - create the transformer like model success [2022-04-21 15:52:21,733] [ INFO] - Initialize ASR server engine successfully. INFO: Started server process [11173] diff --git a/paddlespeech/server/engine/asr/online/asr_engine.py b/paddlespeech/server/engine/asr/online/asr_engine.py index ad1e6fa3..79b0ddb7 100644 --- a/paddlespeech/server/engine/asr/online/asr_engine.py +++ b/paddlespeech/server/engine/asr/online/asr_engine.py @@ -669,7 +669,7 @@ class ASRServerExecutor(ASRExecutor): ]: logger.info( "we set the decoding_method to attention_rescoring") - self.config.decode.decoding = "attention_rescoring" + self.config.decode.decoding_method = "attention_rescoring" assert self.config.decode.decoding_method in [ "ctc_prefix_beam_search", "attention_rescoring" ], f"we only support ctc_prefix_beam_search and attention_rescoring dedoding method, current decoding method is {self.config.decode.decoding_method}"