if (FALSE) {
# Deprecated usage
texts <- c("I love this product!", "This is terrible.")
annotate(texts, task_sentiment(), model_name = "openai")
# New recommended usage
coded <- qlm_code(texts, task_sentiment(), model = "openai")
coded # Print as tibble
}
Run the code above in your browser using DataLab