Tweet Classification

Given a set of tweets, determine if the tweet is about a demo, a piece of news, or an event

Classify Data
Topic Classification

Examples

LABEL

TEXT

Demo

The best part about using my Cohere laptop is waking up to the generated welcome message.NOW YOU CAN TOO 😳🎉👋🚀https://github.com/aidangomez/welcomeEvery 15mins a new 1 of 1 generated expression of positivity injected directly into your brain.

Event

We’re getting ready for the 3rd @CohereAI community hackathon this weekend hosted by @lablabai! Join us to build a demo no one forgets and compete for 7000$ Cohere API credits & swag🔥You can still sign up ↓https://hubs.li/Q01nt6bn0 #hackathon #nlproc #demo

Event

During the Elevate Festival in Toronto, @CohereAI Co-founder and CEO @aidangomezzz was featured on stage, where he was joined by Stephen Marche to discuss what’s next for large language models. Check it out ↓

News

Digital note-taking apps are getting more impressive, but it still takes manual effort and discipline to make them work for us. In this article, we explore how language AI can help in this space.

Demo

Using this tutorial, you can analyze and classify a user’s review as either positive or negative using sentiment analysis features in an existing Next.js app. We show you how to leverage language AI into your applications. Check it out ↓

News

An incredible opportunity for aspiring NLP researchers around the world. Our research lab @forai_ml is truly on a path to change where, how, and by whom research is done. Learn more about the program here! #research https://txt.cohere.ai/introducing-the-cohere-for-ai-scholars-program-your-research-journey-starts-here/

Event

Cohere’s brilliant engineer Sudip Roy at @nvidia’s #GTC2022 discussing building and deploying large language models at scale. Great conversation with @nikiparmar09 and others! #inference #llmshttps://register.nvidia.com/flow/nvidia/gtcfall2022/attendeeportal/page/sessioncatalog/session/1657565009066001kSp9

Demo

Arrrrghhh you landlubbers! Do you have trouble communicating with people in plain English? Fear not, because we have something for you. This preset translates plain English into pirate speak. Try it on our Playground here: https://hubs.li/Q01mZNRk0

News

Such a crazy week. Sometimes you forget the moments in-between. Our C4AI community is now at 58 countries! 💙🌍Takes an absurd amount of work, but it feels like we are not alone on this journey to expand the spaces in which research is done. Our little community that could.

Event

Great conversations about the revolution that Transformers brought to the industry and the future of NLP with cofounder & CEO of Cohere @aidangomezzz and NYT & The Atlantic columnist @StephenMarche at @ElevateTechCA today #ElevateFest2022

Event

had a blast last wknd running workshop on how to build nlp app using @CohereAI at @HackTheNorth🔥the room was packed, hacker energy was high(2:00 am!) & we got +60 demos based on the cohere api🥹 llms are at your finger tips. u need zero ai knowhow to access them. keep grinding!

Event

Will you be at @ElevateTechCA tomorrow? If so, join Cohere cofounder @aidangomezzz in conversation with @StephenMarche on the AI stage to hear more about their thoughts on the next frontier of technology 🧠#ElevateFest2022 https://elevatefestival.ca/schedule/#:~:text=A%20future%20without%20the%20human%2Dmachine%20language%20barrier

News

@StephenMarche is a novelist, essayist and author of many wonderful articles featured in NYT, Wired and most recently, @TheAtlantic

News

The amount of text data that capital markets generates is unending and the industry struggles to keep up to make informed investment recommendations. Here, @RobinGainer highlights how NLP can be the edge firms are looking for. #nlp #fintech #capitalmarkets

Event

This Friday at 12 pm ET we’re hosting a co:lab friday session with teams that scored 🥇, 🥈 and 🥉 place at Cohere community hackathon #2 hosted in September. Join us to see their demos and exchange notes on building prototypes with our API 🤗 https://hubs.li/Q01mG3Y80#hackathon

Demo

Generating text with LLMs is exciting, but sometimes the generated text is not factually accurate. What if you could make it correct thought?In this demo, we show you how to combine Generate with Search to build an accurate, QA bot in @Discord

Demo

Quite often, we end up taking way longer to write an email than we’d planned. What if you could get AI to write emails for you? With this preset, you supply a couple of keywords and you get a complete email back. Try it on our Playground here: https://hubs.li/Q01mgVLD0

Request

You don’t want to miss this live AMA session with Cohere CEO and Co-founder @aidangomezzz!🔥 Sign up here: https://hubs.li/Q01lLz9J0 If you have any questions for Aidan in advance, submit them here: https://hubs.li/Q01lLFz_0#ai #nlproc #ama

Response

Event

100%

Demo

0%

News

0%

API Request
import cohere
from cohere.classify import Example
co = cohere.Client('{apiKey}')
response = co.classify(
model='large',
inputs=["You don’t want to miss this live AMA session with Cohere CEO and Co-founder @aidangomezzz!🔥 Sign up here: https://hubs.li/Q01lLz9J0 If you have any questions for Aidan in advance, submit them here: https://hubs.li/Q01lLFz_0#ai #nlproc #ama", "Generating text with LLMs is exciting, but sometimes the generated text is not factually accurate. What if you could make it correct thought?In this demo, we show you how to combine Generate with Search to build an accurate, QA bot in @Discord"],
examples=[Example("The best part about using my Cohere laptop is waking up to the generated welcome message.NOW YOU CAN TOO 😳🎉👋🚀https://github.com/aidangomez/welcomeEvery 15mins a new 1 of 1 generated expression of positivity injected directly into your brain.", "Demo"), Example("We’re getting ready for the 3rd @CohereAI community hackathon this weekend hosted by @lablabai! Join us to build a demo no one forgets and compete for 7000$ Cohere API credits & swag🔥You can still sign up ↓https://hubs.li/Q01nt6bn0 #hackathon #nlproc #demo", "Event"), Example("During the Elevate Festival in Toronto, @CohereAI Co-founder and CEO @aidangomezzz was featured on stage, where he was joined by Stephen Marche to discuss what’s next for large language models. Check it out ↓", "Event"), Example("Digital note-taking apps are getting more impressive, but it still takes manual effort and discipline to make them work for us. In this article, we explore how language AI can help in this space.", "News"), Example("Using this tutorial, you can analyze and classify a user’s review as either positive or negative using sentiment analysis features in an existing Next.js app. We show you how to leverage language AI into your applications. Check it out ↓", "Demo"), Example("An incredible opportunity for aspiring NLP researchers around the world. Our research lab @forai_ml is truly on a path to change where, how, and by whom research is done. Learn more about the program here! #research https://txt.cohere.ai/introducing-the-cohere-for-ai-scholars-program-your-research-journey-starts-here/", "News"), Example("Cohere’s brilliant engineer Sudip Roy at @nvidia’s #GTC2022 discussing building and deploying large language models at scale. Great conversation with @nikiparmar09 and others! #inference #llmshttps://register.nvidia.com/flow/nvidia/gtcfall2022/attendeeportal/page/sessioncatalog/session/1657565009066001kSp9", "Event"), Example("Arrrrghhh you landlubbers! Do you have trouble communicating with people in plain English? Fear not, because we have something for you. This preset translates plain English into pirate speak. Try it on our Playground here: https://hubs.li/Q01mZNRk0", "Demo"), Example("Such a crazy week. Sometimes you forget the moments in-between. Our C4AI community is now at 58 countries! 💙🌍Takes an absurd amount of work, but it feels like we are not alone on this journey to expand the spaces in which research is done. Our little community that could.", "News"), Example("Great conversations about the revolution that Transformers brought to the industry and the future of NLP with cofounder & CEO of Cohere @aidangomezzz and NYT & The Atlantic columnist @StephenMarche at @ElevateTechCA today #ElevateFest2022", "Event"), Example("had a blast last wknd running workshop on how to build nlp app using @CohereAI at @HackTheNorth🔥the room was packed, hacker energy was high(2:00 am!) & we got +60 demos based on the cohere api🥹 llms are at your finger tips. u need zero ai knowhow to access them. keep grinding!", "Event"), Example("Will you be at @ElevateTechCA tomorrow? If so, join Cohere cofounder @aidangomezzz in conversation with @StephenMarche on the AI stage to hear more about their thoughts on the next frontier of technology 🧠#ElevateFest2022 https://elevatefestival.ca/schedule/#:~:text=A%20future%20without%20the%20human%2Dmachine%20language%20barrier", "Event"), Example("@StephenMarche is a novelist, essayist and author of many wonderful articles featured in NYT, Wired and most recently, @TheAtlantic", "News"), Example("The amount of text data that capital markets generates is unending and the industry struggles to keep up to make informed investment recommendations. Here, @RobinGainer highlights how NLP can be the edge firms are looking for. #nlp #fintech #capitalmarkets", "News"), Example("This Friday at 12 pm ET we’re hosting a co:lab friday session with teams that scored 🥇, 🥈 and 🥉 place at Cohere community hackathon #2 hosted in September. Join us to see their demos and exchange notes on building prototypes with our API 🤗 https://hubs.li/Q01mG3Y80#hackathon", "Event"), Example("Generating text with LLMs is exciting, but sometimes the generated text is not factually accurate. What if you could make it correct thought?In this demo, we show you how to combine Generate with Search to build an accurate, QA bot in @Discord", "Demo"), Example("Quite often, we end up taking way longer to write an email than we’d planned. What if you could get AI to write emails for you? With this preset, you supply a couple of keywords and you get a complete email back. Try it on our Playground here: https://hubs.li/Q01mgVLD0", "Demo")])
print('The confidence levels of the labels are: {}'.format(response.classifications))