From 730e9d08dbac41c7678cf6420d833b6cf6e03a41 Mon Sep 17 00:00:00 2001 From: praneet pabolu Date: Fri, 22 Dec 2023 16:03:50 +0530 Subject: [PATCH 1/2] Rectify typo in "DatasetGenerator" example --- tutorials/TUTORIAL-1_OVERVIEW.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/TUTORIAL-1_OVERVIEW.md b/tutorials/TUTORIAL-1_OVERVIEW.md index 50bd31b..8f88e86 100644 --- a/tutorials/TUTORIAL-1_OVERVIEW.md +++ b/tutorials/TUTORIAL-1_OVERVIEW.md @@ -169,7 +169,7 @@ frameworks such as [flair](https://github.com/flairNLP/flair), deepset's [haysta ```python from fabricator import BasePrompt, DatasetGenerator -prompt_template = BasePrompt(task_description="Generate a movie review.") +prompt = BasePrompt(task_description="Generate a movie review.") prompt_node = PromptNode("google/flan-t5-base") From bc2395282e25efefe9f3b08cd1d589d9341a96ef Mon Sep 17 00:00:00 2001 From: praneet pabolu Date: Fri, 22 Dec 2023 16:39:46 +0530 Subject: [PATCH 2/2] Update TUTORIAL-3_ADVANCED-GENERATION.md --- tutorials/TUTORIAL-3_ADVANCED-GENERATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/TUTORIAL-3_ADVANCED-GENERATION.md b/tutorials/TUTORIAL-3_ADVANCED-GENERATION.md index 76441c6..5f3dd07 100644 --- a/tutorials/TUTORIAL-3_ADVANCED-GENERATION.md +++ b/tutorials/TUTORIAL-3_ADVANCED-GENERATION.md @@ -43,7 +43,7 @@ Movie Review: {text} Sentiment: ``` -## Inferring the Prompt rom Dataset Info +## Inferring the Prompt from Dataset Info Huggingface Dataset objects provide the possibility to infer a prompt from the dataset. This can be achieved by using the `infer_prompt_from_dataset` function. This function takes a dataset