mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add default emo and event target for sensevoice
This commit is contained in:
parent
a98550fdf5
commit
bd352983c6
@ -325,8 +325,8 @@ class SenseVoiceCTCDataset(torch.utils.data.Dataset):
|
||||
asr_target = item["target"]
|
||||
if self.preprocessor_text:
|
||||
asr_target = self.preprocessor_text(asr_target)
|
||||
emo_target = item["emo_target"]
|
||||
event_target = item["event_target"]
|
||||
emo_target = item.get("emo_target", "<|NEUTRAL|>")
|
||||
event_target = item.get("event_target", "<|Speech|>")
|
||||
text_language = item.get("text_language", "<|zh|>")
|
||||
punc_itn_bottom = item.get("with_or_wo_itn", "<|woitn|>")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user