You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @AparnaAgrawal02, the tutorial seems to be deprecated, can you specify which model you used or any other specifics, so that I can check if this issue exists in any of the current transformers tutorials
Uh oh!
There was an error while loading. Please reload this page.
Add Link
https://pytorch.org/tutorials/beginner/translation_transformer.html
Describe the bug
Expected Blue score of 35 -30
got near 0.6 - tested on test set got from Multi30k -Attaching here. (format: de|en)
Same code as the tutorial
code used to calculate Bleu score:
from nltk.translate.bleu_score import sentence_bleu import numpy as np def bleu4(candidate, reference): score = sentence_bleu([reference], candidate, weights=(0.25, 0.25, 0.25, 0.25)) # score = sentence_bleu([reference], candidate) return score
Modified BlocK:
`
Describe your environment
Linux
Name: torch
Version: 2.0.1
cc @pytorch/team-text-core @Nayef211
The text was updated successfully, but these errors were encountered: