Skip to content

Commit c9d97d7

Browse files
committed
fix typo
1 parent 932f8f6 commit c9d97d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

whisper_timestamped/transcribe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def may_flush_segment(curr_tokens = None):
619619
tokens_filtered[-1] = tokenizer.timestamp_begin + N_FRAMES // 2 # <|30.00|>
620620
segment_tokens[-1] = tokens_filtered.tolist()
621621

622-
# Do alignement
622+
# Do alignment
623623
added, unfinished_decoding, last_token_reliable = align_last_segment()
624624

625625
# Re-split into segments (if necessary)
@@ -3019,7 +3019,7 @@ def str2output_formats(string):
30193019
parser.add_argument("--compute_confidence", default=True, help="whether to compute confidence scores for words", type=str2bool)
30203020
parser.add_argument("--verbose", type=str2bool, default=False, help="whether to print out the progress and debug messages of Whisper")
30213021
parser.add_argument('--plot', help="plot word alignments (save the figures if an --output_dir is specified, otherwhise just show figures that have to be closed to continue)", default=False, action="store_true")
3022-
parser.add_argument('--debug', help="print some debug information about word alignement", default=False, action="store_true")
3022+
parser.add_argument('--debug', help="print some debug information about word alignment", default=False, action="store_true")
30233023

30243024
class ActionSetAccurate(argparse.Action):
30253025
def __init__(self, option_strings, dest, nargs=None, **kwargs):

0 commit comments

Comments
 (0)