tidy_huggingface_zeroshot: Tidy a zero-shot classifier output and join with original...

View source: R/tidy_huggingface_zero_shot.R

tidy_huggingface_zeroshotR Documentation

Tidy a zero-shot classifier output and join with original text variable

Description

Tidy a zero-shot classifier output and join with original text variable

Usage

tidy_huggingface_zeroshot(text_df, model_output, num_labels)

Arguments

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

Value

tibble


jpcompartir/JPackage documentation built on March 20, 2023, 4 a.m.