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

Fix AST eval #8112

Merged
merged 8 commits into from
Jan 10, 2024
Merged

Fix AST eval #8112

merged 8 commits into from
Jan 10, 2024

Conversation

stevehuang52
Copy link
Collaborator

Fix bleu calculation for ASR evaluator

fayejf
fayejf previously approved these changes Jan 2, 2024
Copy link
Collaborator

@fayejf fayejf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@stevehuang52
Copy link
Collaborator Author

jenkins

Signed-off-by: stevehuang52 <[email protected]>
@stevehuang52
Copy link
Collaborator Author

jenkins

)
if gt_text_attr_name not in sample:
if "text" in sample:
gt_text_attr_name = "text"

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable gt_text_attr_name is not used.
f"ground-truth text attribute {pred_text_attr_name} is not present in manifest! Cannot calculate {metric}. Returning!"
)
if "text" in sample:
gt_text_attr_name = "text"

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable gt_text_attr_name is not used.
Copy link
Collaborator

@fayejf fayejf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevehuang52
Copy link
Collaborator Author

jenkins

@stevehuang52 stevehuang52 merged commit bd47c5c into main Jan 10, 2024
15 checks passed
@stevehuang52 stevehuang52 deleted the add_text_metrics_evaluator branch January 10, 2024 17:04
minitu pushed a commit to minitu/NeMo that referenced this pull request Jan 19, 2024
* add text metrics to asr eval

Signed-off-by: stevehuang52 <[email protected]>

* temporary fix for EncDecTransfModelBPE

Signed-off-by: stevehuang52 <[email protected]>

* fix bleu eval

Signed-off-by: stevehuang52 <[email protected]>

* fix typo

Signed-off-by: stevehuang52 <[email protected]>

---------

Signed-off-by: stevehuang52 <[email protected]>
Co-authored-by: fayejf <[email protected]>
ssh-meister pushed a commit to ssh-meister/NeMo that referenced this pull request Feb 15, 2024
* add text metrics to asr eval

Signed-off-by: stevehuang52 <[email protected]>

* temporary fix for EncDecTransfModelBPE

Signed-off-by: stevehuang52 <[email protected]>

* fix bleu eval

Signed-off-by: stevehuang52 <[email protected]>

* fix typo

Signed-off-by: stevehuang52 <[email protected]>

---------

Signed-off-by: stevehuang52 <[email protected]>
Co-authored-by: fayejf <[email protected]>
Signed-off-by: Sasha Meister <[email protected]>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* add text metrics to asr eval

Signed-off-by: stevehuang52 <[email protected]>

* temporary fix for EncDecTransfModelBPE

Signed-off-by: stevehuang52 <[email protected]>

* fix bleu eval

Signed-off-by: stevehuang52 <[email protected]>

* fix typo

Signed-off-by: stevehuang52 <[email protected]>

---------

Signed-off-by: stevehuang52 <[email protected]>
Co-authored-by: fayejf <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants