mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-13 11:04:18 +00:00
bug fixes
This commit is contained in:
parent
53b7aead10
commit
4b8aefa22f
@ -788,18 +788,13 @@ def main():
|
|||||||
c.supervisions[0].text = text_normalize(text)
|
c.supervisions[0].text = text_normalize(text)
|
||||||
return c
|
return c
|
||||||
|
|
||||||
dev_cuts = aishell4.valid_cuts()
|
|
||||||
dev_cuts = dev_cuts.map(text_normalize_for_cut)
|
|
||||||
dev_cuts = dev_cuts.filter(remove_short_utt)
|
|
||||||
dev_dl = aishell4.valid_dataloaders(dev_cuts)
|
|
||||||
|
|
||||||
test_cuts = aishell4.test_cuts()
|
test_cuts = aishell4.test_cuts()
|
||||||
test_cuts = test_cuts.map(text_normalize_for_cut)
|
test_cuts = test_cuts.map(text_normalize_for_cut)
|
||||||
test_cuts = test_cuts.filter(remove_short_utt)
|
test_cuts = test_cuts.filter(remove_short_utt)
|
||||||
test_dl = aishell4.test_dataloaders(test_cuts)
|
test_dl = aishell4.test_dataloaders(test_cuts)
|
||||||
|
|
||||||
test_sets = ["dev", "test"]
|
test_sets = ["test"]
|
||||||
test_dls = [dev_dl, test_dl]
|
test_dls = [test_dl]
|
||||||
|
|
||||||
for test_set, test_dl in zip(test_sets, test_dls):
|
for test_set, test_dl in zip(test_sets, test_dls):
|
||||||
results_dict = decode_dataset(
|
results_dict = decode_dataset(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user