Skip to content
Snippets Groups Projects

Support subword and word language models

Merged Solene Tarride requested to merge subword-and-word-lm into main
All threads resolved!
1 file
+ 0
2
Compare changes
  • Side-by-side
  • Inline
+ 0
2
@@ -516,8 +516,6 @@ class CTCLanguageDecoder:
Add CTC frames between each characters to avoid duplicate removal
"""
batch_size, _, n_tokens = batch_features.shape
torch.clone(batch_features)
# visualize_debug(batch_features.exp()[0, :batch_frames[0], :].numpy(), "probs.jpg", False)
# Create tensor with high probability CTC token
high_prob = 0.99
Loading