mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
Fix convert_texts_into_ids() in the tedlium3 recipe. (#1929)
This commit is contained in:
parent
5ec95e5482
commit
cc2e64a6aa
@ -422,7 +422,7 @@ def compute_loss(
|
||||
|
||||
texts = batch["supervisions"]["text"]
|
||||
unk_id = params.unk_id
|
||||
y = convert_texts_into_ids(texts, unk_id, sp=sp)
|
||||
y = convert_texts_into_ids(texts, sp=sp)
|
||||
y = k2.RaggedTensor(y).to(device)
|
||||
|
||||
with torch.set_grad_enabled(is_training):
|
||||
|
@ -397,7 +397,7 @@ def compute_loss(
|
||||
|
||||
texts = batch["supervisions"]["text"]
|
||||
unk_id = params.unk_id
|
||||
y = convert_texts_into_ids(texts, unk_id, sp=sp)
|
||||
y = convert_texts_into_ids(texts, sp=sp)
|
||||
y = k2.RaggedTensor(y).to(device)
|
||||
|
||||
with torch.set_grad_enabled(is_training):
|
||||
|
Loading…
x
Reference in New Issue
Block a user