data(scotus_tweets_examples)
format_prompt(text = "I am disappointed with this ruling.",
instructions = "Decide if the sentiment of this statement is Positive or Negative.",
examples = scotus_tweets_examples,
template = "Statement: {text}\nSentiment: {label}")
format_prompt(text = 'I am sad about the Supreme Court',
examples = scotus_tweets_examples,
template = '"{text}" is a {label} statement',
separator = '\n')
Run the code above in your browser using DataLab