-
Notifications
You must be signed in to change notification settings - Fork 192
Numb3rs ds addition #1174
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
Merged
+557
−42
Merged
Numb3rs ds addition #1174
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
676254d
update idea how the set is added. (now 3 predefined promts))
Jorjeous afa8429
upd path's
Jorjeous 812a575
Merge remote-tracking branch 'origin/main' into add_numb3rs_dataset
Jorjeous 7bd885a
rm merge artifact
Jorjeous 8e5d51f
simplification of metric appearance, expicit failing on errors
Jorjeous 6343353
add to docstring new normalization mode
Jorjeous 00b3958
update docstrings
Jorjeous b8c960a
lint
Jorjeous 7a4d02b
add enable audio by default
Jorjeous 00511e7
update docs with desct and example command
Jorjeous 8b15f08
Merge branch 'main' into add_numb3rs_dataset
Jorjeous e639023
unification of refenence field, updated to set level aggregation calc…
Jorjeous fb32760
Merge branch 'main' into add_numb3rs_dataset
Jorjeous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """Numb3rs: Numbers Speech Benchmark for TN/ITN evaluation. | ||
|
|
||
| A speech dataset for text normalization (TN) and inverse text normalization (ITN) tasks, | ||
| containing paired written/spoken forms with corresponding synthetic audio. | ||
|
|
||
| Dataset: https://huggingface.co/datasets/nvidia/Numb3rs | ||
|
|
||
| Categories: ADDRESS, CARDINAL, DATE, DECIMAL, DIGIT, FRACTION, MEASURE, MONEY, | ||
| ORDINAL, PLAIN, TELEPHONE, TIME | ||
|
|
||
| Features: | ||
| - Dual reference evaluation: text_tn (written form) and text_itn (spoken form) | ||
| - Multiple prompt variants available as separate files: | ||
| - test_neutral.jsonl: Neutral transcription prompt | ||
| - test_tn.jsonl: Text normalization prompt (expects written form) | ||
| - test_itn.jsonl: Inverse text normalization prompt (expects spoken form) | ||
| - ~10K samples, ~4.89h total duration | ||
|
|
||
| Usage: | ||
| # Prepare dataset (generates all 3 prompt variants) | ||
| ns prepare_data numb3rs | ||
|
|
||
| # Generate with neutral prompt, evaluate against both references | ||
| ns generate ... \ | ||
| ++input_file=/path/to/numb3rs/test_neutral.jsonl \ | ||
| ++eval_config.reference_fields='[text_tn,text_itn]' | ||
|
|
||
| # Generate with TN prompt (expects written form as answer) | ||
| ns generate ... \ | ||
| ++input_file=/path/to/numb3rs/test_tn.jsonl \ | ||
| ++eval_config.reference_fields='[text_tn,text_itn]' | ||
|
|
||
| # Generate with ITN prompt (expects spoken form as answer) | ||
| ns generate ... \ | ||
| ++input_file=/path/to/numb3rs/test_itn.jsonl \ | ||
| ++eval_config.reference_fields='[text_tn,text_itn]' | ||
| """ | ||
|
|
||
| # Dataset configuration | ||
| DATASET_GROUP = "speechlm" | ||
| METRICS_TYPE = "audio" | ||
| DEFAULT_SPLIT = "test_neutral" # Use neutral prompt variant by default | ||
|
|
||
| # Evaluation settings | ||
| EVAL_SPLIT = "test_neutral" # Use neutral prompt variant by default | ||
| EVAL_ARGS = ( | ||
| "++eval_type=audio " | ||
| "++eval_config.reference_fields='[text_tn,text_itn]' " # Evaluate against both references | ||
| "++eval_config.normalization_mode=no_tn_itn " # Lowercase + remove punct. | ||
| ) | ||
|
|
||
| # Generation settings - OpenAI format for audio-language models | ||
| GENERATION_ARGS = "++prompt_format=openai ++enable_audio=true" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is something wrong with headers and placement of docs in this file (not just for numb3rs). We should probably only have one header for each benchmark and all information goes into subheaders