mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-28 11:14:19 +00:00
fix style
This commit is contained in:
parent
cbad2311a8
commit
675ae1334d
1
.flake8
1
.flake8
@ -5,6 +5,7 @@ max-line-length = 80
|
||||
per-file-ignores =
|
||||
# line too long
|
||||
egs/librispeech/ASR/*/conformer.py: E501,
|
||||
egs/aishell/ASR/*/conformer.py: E501,
|
||||
|
||||
exclude =
|
||||
.git,
|
||||
|
@ -107,4 +107,3 @@ if __name__ == "__main__":
|
||||
|
||||
args = get_args()
|
||||
compute_fbank_aishell(num_mel_bins=args.num_mel_bins)
|
||||
|
||||
|
@ -87,6 +87,7 @@ def compute_fbank_musan(num_mel_bins: int = 80):
|
||||
)
|
||||
musan_cuts.to_json(musan_cuts_path)
|
||||
|
||||
|
||||
def get_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
|
@ -33,10 +33,9 @@ and generates the following files in the directory `lang_dir`:
|
||||
- tokens.txt
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Tuple
|
||||
from typing import Dict, List
|
||||
|
||||
import k2
|
||||
import torch
|
||||
|
@ -903,4 +903,3 @@ def rescore_with_attention_decoder(
|
||||
key = f"ngram_lm_scale_{n_scale}_attention_scale_{a_scale}"
|
||||
ans[key] = best_path
|
||||
return ans
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user