asr_inference.py
Less than 1 minute
asr_inference.py
ASR Decoding
usage: asr_inference.py [-h] [--config CONFIG]
[--log_level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]
--output_dir OUTPUT_DIR [--ngpu NGPU] [--seed SEED]
[--dtype {float16,float32,float64}]
[--num_workers NUM_WORKERS]
--data_path_and_name_and_type
DATA_PATH_AND_NAME_AND_TYPE [--key_file KEY_FILE]
[--allow_variable_data_keys ALLOW_VARIABLE_DATA_KEYS]
[--asr_train_config ASR_TRAIN_CONFIG]
[--asr_model_file ASR_MODEL_FILE]
[--lm_train_config LM_TRAIN_CONFIG]
[--lm_file LM_FILE]
[--word_lm_train_config WORD_LM_TRAIN_CONFIG]
[--word_lm_file WORD_LM_FILE]
[--ngram_file NGRAM_FILE] [--model_tag MODEL_TAG]
[--enh_s2t_task ENH_S2T_TASK] [--multi_asr MULTI_ASR]
[--quantize_asr_model QUANTIZE_ASR_MODEL]
[--quantize_lm QUANTIZE_LM]
[--quantize_modules [QUANTIZE_MODULES ...]]
[--quantize_dtype {float16,qint8}]
[--batch_size BATCH_SIZE] [--nbest NBEST]
[--beam_size BEAM_SIZE] [--penalty PENALTY]
[--maxlenratio MAXLENRATIO]
[--minlenratio MINLENRATIO] [--ctc_weight CTC_WEIGHT]
[--lm_weight LM_WEIGHT] [--ngram_weight NGRAM_WEIGHT]
[--streaming STREAMING]
[--hugging_face_decoder HUGGING_FACE_DECODER]
[--hugging_face_decoder_conf HUGGING_FACE_DECODER_CONF]
[--transducer_conf TRANSDUCER_CONF]
[--token_type {char,bpe,None}] [--bpemodel BPEMODEL]
[--time_sync TIME_SYNC]
[--lang_prompt_token LANG_PROMPT_TOKEN]
[--nlp_prompt_token NLP_PROMPT_TOKEN]
[--prompt_token_file PROMPT_TOKEN_FILE]
[--normalize_length NORMALIZE_LENGTH]
[--partial_ar PARTIAL_AR]
[--threshold_probability THRESHOLD_PROBABILITY]
[--max_seq_len MAX_SEQ_LEN]
[--max_mask_parallel MAX_MASK_PARALLEL]