View source: R/tidy_huggingface_zero_shot.R
tidy_huggingface_zeroshot | R Documentation |
Tidy a zero-shot classifier output and join with original text variable
tidy_huggingface_zeroshot(text_df, model_output, num_labels)
text_df |
The text variable we fed into Huggingface |
model_output |
Huggingface's model output with sequence, label, score |
num_labels |
The number of labels given to the zero-shot classifier |
tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.