From cea35f3a2f35c64a09d7b10dfedd992185207595 Mon Sep 17 00:00:00 2001 From: Davo Date: Sun, 2 Jun 2024 12:47:05 -0400 Subject: [PATCH] Update classification.md to correct a few function names In the documented examples 2 functions are created to run the classification process: `classify` and `multi_classify`, however, instead of using these functions to run the process a generic `createClassification` function is called. I presume this `createClassification` function name was inherited from the Python documentation. Hope this helps to reduce potential confusion. Thanks for your work! --- docs/examples/classification.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/classification.md b/docs/examples/classification.md index 9af0a396..4d98b145 100644 --- a/docs/examples/classification.md +++ b/docs/examples/classification.md @@ -56,7 +56,7 @@ async function classify(data: string): Promise { return classification } -const classification = await createClassification( +const classification = await classify( "Hello there I'm a nigerian prince and I want to give you money" ) @@ -99,10 +99,10 @@ async function multi_classify(data: string): Promise { return classification } -const classification = await createClassification( +const classification = await multi_classify( "My account is locked and I can't access my billing info. Phone is also broken" ) console.log({ classification }) // { predicted_labels: [ 'billing', 'hardware' ] } -``` \ No newline at end of file +```