Skip to content

Commit d103cb8

Browse files
authored
[ASR]cherrypick change optimizer and fix import error, test=asr (#3049)
* optional tokenizer and fix some doc * cherry pick with pr:3040
1 parent 4d1787d commit d103cb8

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/aishell/asr3/RESULT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* paddle version: develop (commit id: daea892c67e85da91906864de40ce9f6f1b893ae)
66
* paddlespeech version: develop (commit id: c14b4238b256693281e59605abff7c9435b3e2b2)
7+
* paddlenlp version: 2.5.2
78

89
## Device
910
* python: 3.7

examples/aishell/asr3/conf/train_with_wav2vec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ dnn_neurons: 1024
8383
freeze_wav2vec: False
8484
dropout: 0.15
8585

86-
tokenizer: !apply:transformers.BertTokenizer.from_pretrained
86+
tokenizer: !apply:paddlenlp.transformers.AutoTokenizer.from_pretrained
8787
pretrained_model_name_or_path: bert-base-chinese
8888
# bert-base-chinese tokens length
8989
output_neurons: 21128

examples/aishell/asr3/local/aishell_prepare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import logging
2222
import os
2323

24-
from paddlespeech.s2t.models.wav2vec2.io.dataio import read_audio
24+
from paddlespeech.s2t.io.speechbrain.dataio import read_audio
2525

2626
logger = logging.getLogger(__name__)
2727

examples/aishell/asr3/local/data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
stage=-1
4-
stop_stage=-1
4+
stop_stage=3
55
dict_dir=data/lang_char
66

77
. ${MAIN_ROOT}/utils/parse_options.sh || exit -1;

0 commit comments

Comments
 (0)