mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
fix isort
This commit is contained in:
parent
88c35c5e29
commit
d23bacc23b
@ -19,11 +19,13 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
from concurrent.futures import ProcessPoolExecutor as Pool
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from concurrent.futures import ProcessPoolExecutor as Pool
|
|
||||||
|
|
||||||
|
import lhotse
|
||||||
import torch
|
import torch
|
||||||
|
from feature import TorchAudioFbank, TorchAudioFbankConfig
|
||||||
from lhotse import (
|
from lhotse import (
|
||||||
CutSet,
|
CutSet,
|
||||||
LilcomChunkyWriter,
|
LilcomChunkyWriter,
|
||||||
@ -31,9 +33,6 @@ from lhotse import (
|
|||||||
set_audio_duration_mismatch_tolerance,
|
set_audio_duration_mismatch_tolerance,
|
||||||
)
|
)
|
||||||
|
|
||||||
from feature import TorchAudioFbank, TorchAudioFbankConfig
|
|
||||||
import lhotse
|
|
||||||
|
|
||||||
# Torch's multithreaded behavior needs to be disabled or
|
# Torch's multithreaded behavior needs to be disabled or
|
||||||
# it wastes a lot of CPU and slow things down.
|
# it wastes a lot of CPU and slow things down.
|
||||||
# Do this outside of main() in case it needs to take effect
|
# Do this outside of main() in case it needs to take effect
|
||||||
|
@ -24,15 +24,14 @@ This file reads the texts in given manifest and save the cleaned new cuts.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
|
||||||
import glob
|
import glob
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
|
from concurrent.futures import ProcessPoolExecutor as Pool
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from lhotse import CutSet, load_manifest_lazy
|
from lhotse import CutSet, load_manifest_lazy
|
||||||
from concurrent.futures import ProcessPoolExecutor as Pool
|
|
||||||
|
|
||||||
from tokenizer import (
|
from tokenizer import (
|
||||||
is_alphabet,
|
is_alphabet,
|
||||||
is_chinese,
|
is_chinese,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user