Last active
January 3, 2021 20:11
-
-
Save ThilinaRajapakse/d3ea0bf7c8fb1f841bb40ce3f9e96218 to your computer and use it in GitHub Desktop.
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
eval_df = pd.read_csv("data/eval.tsv", sep="\t").astype(str) | |
sinhala_truth = [eval_df.loc[eval_df["prefix"] == "translate english to sinhala"]["target_text"].tolist()] | |
to_sinhala = eval_df.loc[eval_df["prefix"] == "translate english to sinhala"]["input_text"].tolist() | |
english_truth = [eval_df.loc[eval_df["prefix"] == "translate sinhala to english"]["target_text"].tolist()] | |
to_english = eval_df.loc[eval_df["prefix"] == "translate sinhala to english"]["input_text"].tolist() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment