Skip to content

added datasets and models for text generation evaluation - #291

Open
ashish3586 wants to merge 1 commit into
mainfrom
feature/text_generation_leaderboard
Open

added datasets and models for text generation evaluation#291
ashish3586 wants to merge 1 commit into
mainfrom
feature/text_generation_leaderboard

Conversation

@ashish3586

Copy link
Copy Markdown
Collaborator

No description provided.

@tongshuangwu

Copy link
Copy Markdown
Collaborator

Thanks, this is great! Can you also run these evals and add the numbers to the leaderboard readme?

@mille-s

mille-s commented Sep 28, 2021

Copy link
Copy Markdown
Contributor

@ashish3586 can you please provide a short description of your transformation?

@Saad-Mahamood Saad-Mahamood left a comment

Copy link
Copy Markdown
Collaborator

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"]
)

Copy link
Copy Markdown
Collaborator

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"]
)

Copy link
Copy Markdown
Collaborator

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}"

Copy link
Copy Markdown
Collaborator

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(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Duplicate print statement.


for example in dataset:
for i,example in enumerate(dataset):
print(i)

Copy link
Copy Markdown
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants