Skip to content

Commit cb74803

Browse files
authored
fix the bug "can't start ASR streaming_server" (#2337)
* Update application.yaml
1 parent 0b544ee commit cb74803

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

demos/streaming_asr_server/conf/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ asr_online:
2828
sample_rate: 16000
2929
cfg_path:
3030
decode_method:
31+
num_decoding_left_chunks: -1
3132
force_yes: True
3233
device: 'cpu' # cpu or gpu:id
3334
decode_method: "attention_rescoring"

examples/iwslt2012/punc0/README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,62 @@
1818
./run.sh --stage 3 --stop-stage 3
1919
```
2020
## Pretrained Model
21-
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).
21+
The pretrained model can be downloaded here:
22+
23+
[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)
24+
25+
[ernie-3.0-base.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-base.tar.gz)
26+
27+
[ernie-3.0-medium.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-medium.tar.gz)
28+
29+
[ernie-3.0-micro.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-3.0-micro.tar.gz)
30+
31+
[ernie-mini.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-mini.tar.gz)
32+
33+
[ernie-nano.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-nano.tar.gz)
34+
35+
[ernie-tiny.tar.gz](https://paddlespeech.bj.bcebos.com/punc_restore/ernie-tiny.tar.gz)
2236

2337
### Test Result
24-
- Ernie
38+
- Ernie 1.0
2539
| |COMMA | PERIOD | QUESTION | OVERALL|
2640
|:-----:|:-----:|:-----:|:-----:|:-----:|
2741
|Precision |0.510955 |0.526462 |0.820755 |0.619391|
2842
|Recall |0.517433 |0.564179 |0.861386 |0.647666|
2943
|F1 |0.514173 |0.544669 |0.840580 |0.633141|
44+
- Ernie-tiny
45+
| |COMMA | PERIOD | QUESTION | OVERALL|
46+
|:-----:|:-----:|:-----:|:-----:|:-----:|
47+
|Precision |0.733177 |0.721448 |0.754717 |0.736447|
48+
|Recall |0.380740 |0.524646 |0.733945 |0.546443|
49+
|F1 |0.501204 |0.607506 |0.744186 |0.617632|
50+
- Ernie-3.0-base-zh
51+
| |COMMA | PERIOD | QUESTION | OVERALL|
52+
|:-----:|:-----:|:-----:|:-----:|:-----:|
53+
|Precision |0.805947 |0.764160 |0.858491 |0.809532|
54+
|Recall |0.399070 |0.567978 |0.850467 |0.605838|
55+
|F1 |0.533817 |0.651623 |0.854460 |0.679967|
56+
- Ernie-3.0-medium-zh
57+
| |COMMA | PERIOD | QUESTION | OVERALL|
58+
|:-----:|:-----:|:-----:|:-----:|:-----:|
59+
|Precision |0.730829 |0.699164 |0.707547 |0.712514|
60+
|Recall |0.388196 |0.533286 |0.797872 |0.573118|
61+
|F1 |0.507058 |0.605062 |0.750000 |0.620707|
62+
- Ernie-3.0-mini-zh
63+
| |COMMA | PERIOD | QUESTION | OVERALL|
64+
|:-----:|:-----:|:-----:|:-----:|:-----:|
65+
|Precision |0.757433 |0.708449 |0.707547 |0.724477|
66+
|Recall |0.355752 |0.506977 |0.735294 |0.532674|
67+
|F1 |0.484121 |0.591015 |0.721154 |0.598763|
68+
- Ernie-3.0-micro-zh
69+
| |COMMA | PERIOD | QUESTION | OVERALL|
70+
|:-----:|:-----:|:-----:|:-----:|:-----:|
71+
|Precision |0.733959 |0.679666 |0.726415 |0.713347|
72+
|Recall |0.332742 |0.483487 |0.712963 |0.509731|
73+
|F1 |0.457896 |0.565033 |0.719626 |0.580852|
74+
- Ernie-3.0-nano-zh
75+
| |COMMA | PERIOD | QUESTION | OVERALL|
76+
|:-----:|:-----:|:-----:|:-----:|:-----:|
77+
|Precision |0.693271 |0.682451 |0.754717 |0.710146|
78+
|Recall |0.327784 |0.491968 |0.666667 |0.495473|
79+
|F1 |0.445114 |0.571762 |0.707965 |0.574947|

0 commit comments

Comments
 (0)