From 3cb57e18e107d137c6e8ded81dd587178308293e Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 11 Oct 2023 12:04:30 +0200 Subject: [PATCH] Fix example. --- website/docs/api/large-language-models.mdx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/website/docs/api/large-language-models.mdx b/website/docs/api/large-language-models.mdx index 993b77839..6f4ba344e 100644 --- a/website/docs/api/large-language-models.mdx +++ b/website/docs/api/large-language-models.mdx @@ -784,18 +784,19 @@ supports `.yml`, `.yaml`, `.json` and `.jsonl`. path = "textcat_examples.json" ``` -If you want to perform few-shot learning with a binary classifier, you can -provide positive and negative examples - e. g.: +If you want to perform few-shot learning with a binary classifier (i. e. a text either should or should not be assigned +to a given class), you can provide positive and negative examples with the POS/NEG label. An example for spam +classification: ```json [ { "text": "You won the lottery! Wire a fee of 200$ to be able to withdraw your winnings.", - "answer": "Spam" + "answer": "POS" }, { "text": "Your order #123456789 has arrived", - "answer": "NotSpam" + "answer": "NEG" } ] ```