tok_inference_asr.py
Less than 1 minute
tok_inference_asr.py
Decode ASR hypotheses from the hard token IDs written by tokenizer stage 10.
The input is the saved discrete token sequence, not audio or the straight-through one-hot assignments used during joint training. This script measures the ASR output available to a user of the exported hard tokens.
<a id="tok_inference_asr.py"></a>
usage: tok_inference_asr.py [-h] [--config CONFIG] [--task {gan_tok}]
--token_file TOKEN_FILE --output_dir OUTPUT_DIR
--train_config TRAIN_CONFIG --model_file
MODEL_FILE [--key_file KEY_FILE] [--ngpu NGPU]
[--dtype {float16,float32,float64}]
[--beam_size BEAM_SIZE] [--lm_weight LM_WEIGHT]
[--penalty PENALTY] [--maxlenratio MAXLENRATIO]
[--minlenratio MINLENRATIO]
[--num_workers NUM_WORKERS]