hf_text_classification_payload: Text Classification Payload

View source: R/inference.R

hf_text_classification_payloadR Documentation

Text Classification Payload

Description

Usually used for sentiment-analysis this will output the likelihood of classes of an input.

Usage

hf_text_classification_payload(string)

Arguments

string

a string to be classified

Value

An inference payload

See Also

https://huggingface.co/docs/api-inference/detailed_parameters#text-classification-task


farach/huggingfaceR documentation built on Feb. 4, 2023, 10:31 p.m.