mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
* support resume model from pai * add padding for streaming rnnt conv input * fix large dataset training bug * bug fix * modify aishell rnnt egs to support wav input * add libri_100 rnnt recipe * bug fix * add librispeech rnnt recipe * add librispeech README * update rnnt results * bug fix --------- Co-authored-by: aky15 <ankeyu.aky@11.17.44.249>
13 lines
345 B
Python
Executable File
13 lines
345 B
Python
Executable File
#!/usr/bin/env python3
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the license found in the
|
|
# https://github.com/pytorch/fairseq/blob/master/LICENSE
|
|
import sys
|
|
|
|
import sentencepiece as spm
|
|
|
|
if __name__ == "__main__":
|
|
spm.SentencePieceTrainer.Train(" ".join(sys.argv[1:]))
|