-
Notifications
You must be signed in to change notification settings - Fork 197
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
added datasets and models for text generation evaluation #291
base: main
Are you sure you want to change the base?
Conversation
Thanks, this is great! Can you also run these evals and add the numbers to the leaderboard readme? |
@ashish3586 can you please provide a short description of your transformation? |
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.
Minor change required. Just add the DocStrings for the input and return parameters for each of the functions.
dataset = KeyValueDataset.from_huggingface( | ||
hf_dataset, TaskType.TEXT_TO_TEXT_GENERATION, ["text", "summary"] | ||
) | ||
|
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.
Missing return statement for "billsum".
dataset = KeyValueDataset.from_huggingface( | ||
hf_dataset, TaskType.TEXT_TO_TEXT_GENERATION, ["text", "summary"] | ||
) | ||
|
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.
Also, I would suggest adding the 'else' block and raising exceptions with the proper message.
"summarization", model=model_name, tokenizer=model_name | ||
"summarization", model=model_name, tokenizer=model_name, device=0 if is_cuda else -1) | ||
#percent = f"[{split.split('[')[-1]}" if "[" in split else "" | ||
#if dataset_name == "wikihow": split = "all[:1%]" # f"all{percent}" |
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 we can remove this commented code.
#if dataset_name == "wikihow": split = "all[:1%]" # f"all{percent}" | ||
|
||
dataset = _process_data(dataset_name, split) | ||
print( |
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.
Duplicate print statement.
references = [] | ||
raw_hypotheses = [] | ||
print(f"Length of Evaluation dataset is {len(dataset)}") | ||
|
||
for example in dataset: | ||
for i,example in enumerate(dataset): | ||
print(i) |
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.
Do we need this print statement?
No description provided.