Example sentiment classification results from Hugging Face API
Source:R/data.R
df_sentiment_classification_example.Rd
A sample dataset containing sentiment classification results generated using
Hugging Face's classification API. This dataset demonstrates the structure
of results returned by the hf_classify_batch()
and hf_classify_df()
functions.
Format
A data frame with 3 rows and 7 variables:
- id
Integer; unique identifier for each text
- text
Character; the original text that was classified
- category
Character; category classification of the text
- NEGATIVE
Numeric; probability score for negative sentiment (0-1)
- POSITIVE
Numeric; probability score for positive sentiment (0-1)
- .error
Logical; whether the classification process failed
- .error_message
Character; error message if classification failed (NA if successful)