From d94fe9108ba172d4d5e912fbff586cd4b8a362fb Mon Sep 17 00:00:00 2001 From: Dinghao Zhou Date: Tue, 6 Feb 2024 18:22:43 +0800 Subject: [PATCH] [dataset ] fix typo (#2347) --- wenet/dataset/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wenet/dataset/dataset.py b/wenet/dataset/dataset.py index f505f2ecc..4853e5135 100644 --- a/wenet/dataset/dataset.py +++ b/wenet/dataset/dataset.py @@ -53,7 +53,7 @@ def Dataset(data_type, assert 'speaker_table_path' in speaker_conf speaker_table = read_symbol_table(speaker_conf['speaker_table_path']) dataset = dataset.map( - partition(processor.parse_speaker, speaker_dict=speaker_table)) + partial(processor.parse_speaker, speaker_dict=speaker_table)) if tokenizer is not None: dataset = dataset.map(partial(processor.tokenize, tokenizer=tokenizer))