mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
update
This commit is contained in:
parent
f5b8d5dad2
commit
4ae9a00ec5
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
|
||||||
import unicodedata
|
import unicodedata
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from lhotse import CutSet, SupervisionSegment
|
from lhotse import CutSet, SupervisionSegment
|
||||||
from lhotse.recipes.utils import read_manifests_if_cached
|
from lhotse.recipes.utils import read_manifests_if_cached
|
||||||
@ -73,7 +73,7 @@ def normalize_text(
|
|||||||
text = re.sub(r"\u00B0\u0043", "องศาเซลเซียส", text) # °C
|
text = re.sub(r"\u00B0\u0043", "องศาเซลเซียส", text) # °C
|
||||||
text = re.sub(r"\u00B0\u0046", "องศาฟาเรนไฮต์", text) # °F
|
text = re.sub(r"\u00B0\u0046", "องศาฟาเรนไฮต์", text) # °F
|
||||||
text = re.sub(r"\u00B0", "องศา", text) # °
|
text = re.sub(r"\u00B0", "องศา", text) # °
|
||||||
|
|
||||||
# Remove blank symbols
|
# Remove blank symbols
|
||||||
text = re.sub(r"\s", "", text)
|
text = re.sub(r"\s", "", text)
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
|
|||||||
log "Stage 2: Compute fbank for gigaspeech2"
|
log "Stage 2: Compute fbank for gigaspeech2"
|
||||||
mkdir -p data/fbank
|
mkdir -p data/fbank
|
||||||
if [ ! -e data/fbank/.gigaspeech2.done ]; then
|
if [ ! -e data/fbank/.gigaspeech2.done ]; then
|
||||||
./local/compute_fbank_gigaspeech2.py
|
./local/compute_fbank_gigaspeech2.py --lang $lang
|
||||||
touch data/fbank/.gigaspeech2.done
|
touch data/fbank/.gigaspeech2.done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user