Skip to content

Instantly share code, notes, and snippets.

@ThilinaRajapakse
Created January 3, 2021 20:14
Show Gist options
  • Save ThilinaRajapakse/fb8c0e2134f147f634d727b250d67261 to your computer and use it in GitHub Desktop.
Save ThilinaRajapakse/fb8c0e2134f147f634d727b250d67261 to your computer and use it in GitHub Desktop.
# Predict
sinhala_preds = model.predict(to_sinhala)
eng_sin_bleu = sacrebleu.corpus_bleu(sinhala_preds, sinhala_truth)
print("--------------------------")
print("English to Sinhalese: ", eng_sin_bleu.score)
english_preds = model.predict(to_english)
sin_eng_bleu = sacrebleu.corpus_bleu(english_preds, english_truth)
print("Sinhalese to English: ", sin_eng_bleu.score)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment