Skip to content

Commit

Permalink
Update API inference documentation (automated)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanouticelina authored and github-actions[bot] committed Nov 19, 2024
1 parent 296b2ea commit 07f0067
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/api-inference/tasks/zero-shot-classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/

| Payload | | |
| :--- | :--- | :--- |
| **inputs*** | _object_ | The input text data, with candidate labels |
| **        text*** | _string_ | The text to classify |
| **        candidateLabels*** | _string[]_ | The set of possible class labels to classify the text into. |
| **parameters** | _object_ | Additional inference parameters for Zero Shot Classification |
| **        hypothesis_template** | _string_ | The sentence used in conjunction with candidateLabels to attempt the text classification by replacing the placeholder with the candidate labels. |
| **inputs*** | _string_ | The text to classify |
| **parameters*** | _object_ | Additional inference parameters for Zero Shot Classification |
| **        candidate_labels*** | _string[]_ | The set of possible class labels to classify the text into. |
| **        hypothesis_template** | _string_ | The sentence used in conjunction with `candidate_labels` to attempt the text classification by replacing the placeholder with the candidate labels. |
| **        multi_label** | _boolean_ | Whether multiple candidate labels can be true. If false, the scores are normalized such that the sum of the label likelihoods for each sequence is 1. If true, the labels are considered independent and probabilities are normalized for each candidate. |


Expand Down

0 comments on commit 07f0067

Please sign in to comment.