Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "without any explanation" to ST prompt #60

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ultravox/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,13 @@ class CoVoST2Dataset(VoiceDataset):
}

# We currently don't use this dataset for training, so mainly the first prompt it ever used.
# The "no explanation" part is important, specially for evaluations, but it's not repeated
# in all prompts to avoid being too repetitive in training.
TRANSLATE_PROMPTS = [
"Translate the following into {target}: <|audio|>",
"Translate the following into {target} language: <|audio|>",
"Please convert the following into {target}.\n<|audio|>",
"Could you translate this to {target} language?\n<|audio|>",
"Translate the following into {target}, without any explanation: <|audio|>",
farzadab marked this conversation as resolved.
Show resolved Hide resolved
"Translate the following into {target} language, no explanation needed: <|audio|>",
"Please convert the following into {target}. Be concise.\n<|audio|>",
"Could you translate this to {target} language? No commentary necessary.\n<|audio|>",
"Translate the text below to {target}.\n<|audio|>",
"Translate the subsequent text into {target} language. <|audio|>",
"Can you translate this into the {target} language?\n<|audio|>",
Expand Down
Loading