-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give option to disable converting from transcription text to ids. #396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost LGTM.
specgram = self._normalizer.apply(specgram) | ||
return specgram, text_ids | ||
return specgram, transcript_part |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please modify the function doc in Line 106.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
deep_speech_2/infer.py
Outdated
@@ -103,8 +104,7 @@ def infer(): | |||
|
|||
error_rate_func = cer if args.error_rate_type == 'cer' else wer | |||
target_transcripts = [ | |||
''.join([data_generator.vocab_list[token] for token in transcript]) | |||
for _, transcript in infer_data | |||
transcript for _, transcript in infer_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 106 - 108 could be put into one line ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
deep_speech_2/test.py
Outdated
@@ -104,8 +105,7 @@ def evaluate(): | |||
language_model_path=args.lang_model_path, | |||
num_processes=args.num_proc_bsearch) | |||
target_transcripts = [ | |||
''.join([data_generator.vocab_list[token] for token in transcript]) | |||
for _, transcript in infer_data | |||
transcript for _, transcript in infer_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 107 - 109 could be put into single line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
deep_speech_2/tools/tune.py
Outdated
@@ -164,8 +165,7 @@ def tune(): | |||
] | |||
|
|||
target_transcripts = [ | |||
''.join([data_generator.vocab_list[token] for token in transcript]) | |||
for _, transcript in infer_data | |||
transcript for _, transcript in infer_data | |||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 167 - 169 --> single line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
LGTM |
Fixes #393