Skip to content

Commit 50ef94b

Browse files
authored
Fix typos (#4024)
* Fix * Fix
1 parent c2dc4da commit 50ef94b

File tree

34 files changed

+51
-52
lines changed

34 files changed

+51
-52
lines changed

audio/paddleaudio/compliance/kaldi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def spectrogram(waveform: Tensor,
233233
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
234234
to FFT. Defaults to True.
235235
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
236-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
236+
snip_edges (bool, optional): Drop samples in the end of waveform that can't fit a signal frame when it
237237
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
238238
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
239239
window_type (str, optional): Choose type of window for FFT computation. Defaults to "povey".
@@ -443,7 +443,7 @@ def fbank(waveform: Tensor,
443443
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
444444
to FFT. Defaults to True.
445445
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
446-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
446+
snip_edges (bool, optional): Drop samples in the end of waveform that can't fit a signal frame when it
447447
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
448448
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
449449
use_energy (bool, optional): Add an dimension with energy of spectrogram to the output. Defaults to False.
@@ -566,7 +566,7 @@ def mfcc(waveform: Tensor,
566566
round_to_power_of_two (bool, optional): If True, round window size to power of two by zero-padding input
567567
to FFT. Defaults to True.
568568
sr (int, optional): Sample rate of input waveform. Defaults to 16000.
569-
snip_edges (bool, optional): Drop samples in the end of waveform that cann't fit a signal frame when it
569+
snip_edges (bool, optional): Drop samples in the end of waveform that can't fit a signal frame when it
570570
is set True. Otherwise performs reflect padding to the end of waveform. Defaults to True.
571571
subtract_mean (bool, optional): Whether to subtract mean of feature files. Defaults to False.
572572
use_energy (bool, optional): Add an dimension with energy of spectrogram to the output. Defaults to False.

audio/paddleaudio/compliance/librosa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def melspectrogram(x: np.ndarray,
527527
if fmax is None:
528528
fmax = sr // 2
529529
if fmin < 0 or fmin >= fmax:
530-
raise ParameterError('fmin and fmax must statisfy 0<fmin<fmax')
530+
raise ParameterError('fmin and fmax must satisfy 0<fmin<fmax')
531531

532532
s = stft(
533533
x,

examples/aishell/asr3/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/librispeech/asr1/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/librispeech/asr2/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/librispeech/asr3/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/librispeech/asr4/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/librispeech/asr5/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/mustc/st1/cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ elif [ "${cmd_backend}" = sge ]; then
5454
# "sbatch" (Slurm)
5555
elif [ "${cmd_backend}" = slurm ]; then
5656
# The default setting is written in conf/slurm.conf.
57-
# You must change "-p cpu" and "-p gpu" for the "partion" for your environment.
58-
# To know the "partion" names, type "sinfo".
57+
# You must change "-p cpu" and "-p gpu" for the "partition" for your environment.
58+
# To know the "partition" names, type "sinfo".
5959
# You can use "--gpu * " by default for slurm and it is interpreted as "--gres gpu:*"
6060
# The devices are allocated exclusively using "${CUDA_VISIBLE_DEVICES}".
6161

examples/other/ngram_lm/s0/local/kenlm_score_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_full_scores_words():
9797
if w not in model:
9898
print('"{0}" is an OOV'.format(w))
9999
oov.append(w)
100-
# zh_giga.no_cna_cmn.prune01244.klm is chinese charactor LM
100+
# zh_giga.no_cna_cmn.prune01244.klm is chinese character LM
101101
assert oov == ["盘点", "不怕", "网站", "❗", "️", "海淘", "向来", "便宜", "保真",
102102
"!"], 'error oov'
103103

0 commit comments

Comments
 (0)