Helper function to create properly formatted training data for DSPrrr compilation.
Examples
# Create training data from scratch
trainset <- dsp_trainset(
text = c("Great product!", "Awful service"),
sentiment = c("positive", "negative")
)
# Add to existing data frame
df <- data.frame(text = c("Hello", "World"))
trainset <- dsp_trainset(.data = df, label = c("greeting", "other"))
