asahi417's picture
commit files to HF hub
841c0fd
metadata
widget:
  - text: >-
      context: Thanks to @user I just may be switching over to @user, target:
      @microsoft
    example_title: example 1
  - text: >-
      context: If I make a game as a #windows10 Universal App. Will #xboxone
      owners be able to download and play it in November? @majornelson
      @Microsoft, target: @microsoft
    example_title: example 2
  - text: >-
      context: Microsoft, I may not prefer your gaming branch of business. But,
      you do make a damn fine operating system. #Windows10 @Microsoft, target:
      @microsoft
    example_title: example 3

cardiffnlp/flan-t5-base-tweet-sentiment

This is google/flan-t5-base fine-tuned on cardiffnlp/super_tweeteval (tweet_sentiment).

Usage

from transformers import pipeline

pipe = pipeline('text2text-generation', model="cardiffnlp/flan-t5-base-tweet-sentiment")
output = pipe("context: Thanks to @user I just may be switching over to @user, target: @microsoft")