hf_ez_zero_shot_classification_local_inference: Zero Shot Classification Local Inference

View source: R/ez.R

hf_ez_zero_shot_classification_local_inferenceR Documentation

Zero Shot Classification Local Inference

Description

Zero Shot Classification Local Inference

Usage

hf_ez_zero_shot_classification_local_inference(
  string,
  candidate_labels,
  multi_label = FALSE,
  tidy = TRUE,
  ...
)

Arguments

string

a string or list of strings

candidate_labels

a list of strings that are potential classes for inputs. (max 10 candidate_labels, for more, simply run multiple requests, results are going to be misleading if using too many candidate_labels anyway. If you want to keep the exact same, you can simply run multi_label=True and do the scaling on your end. )

multi_label

(Default: false) Boolean that is set to True if classes can overlap

Value

The results of the inference

See Also

https://huggingface.co/docs/transformers/main/en/pipeline_tutorial


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