Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeronymous committed Jul 22, 2024
1 parent 932f8f6 commit c9d97d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper_timestamped/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def may_flush_segment(curr_tokens = None):
tokens_filtered[-1] = tokenizer.timestamp_begin + N_FRAMES // 2 # <|30.00|>
segment_tokens[-1] = tokens_filtered.tolist()

# Do alignement
# Do alignment
added, unfinished_decoding, last_token_reliable = align_last_segment()

# Re-split into segments (if necessary)
Expand Down Expand Up @@ -3019,7 +3019,7 @@ def str2output_formats(string):
parser.add_argument("--compute_confidence", default=True, help="whether to compute confidence scores for words", type=str2bool)
parser.add_argument("--verbose", type=str2bool, default=False, help="whether to print out the progress and debug messages of Whisper")
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")
parser.add_argument('--debug', help="print some debug information about word alignement", default=False, action="store_true")
parser.add_argument('--debug', help="print some debug information about word alignment", default=False, action="store_true")

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

0 comments on commit c9d97d7

Please sign in to comment.