< Back to examples

Headline Market Analysis

Given a news headline, identify if the category of the article is technology, economy, or health

Examples

  • Economy
    • Few Cars, Lots of Customers: Why Autos Are an Inflation Risk
    • Supply Chains Widely Tainted by Forced Labour in China
    • The US Economy is Booming. Why are Economists Worrying About a Recession?
    • Industries hit hard by the pandemic continued their rebound
    • Energy prices in Europe soar 45 percent as inflation hits another record
  • Health
    • New Drug Slashed Deaths Among Patients With Severe Covid, Maker Claims
    • Is 30 minutes of Exercise a Day Enough?
    • With a $2.1 Million Cure Their Only Hope, Parents Plead for Help Online
    • The FDA suspends use of a Glaxo antibody drug in the US as an Omnicron subvariant spreads
    • What to know about the Bird Flu Outbreak
  • Technology
    • New Era Begins at Warner Bros. Tinged with Nostalgia
    • As Gas Prices Went Up, So Did the Hunt for Electric Vehicles
    • Facial Recognition Goes to War
    • US Says It Secretly Removed Malware Worldwide
    • The Old-Timers Are Chasing Netflix

Input

How Robots Can Assist Students with Disabilities

Value

Confidence level

Technology

48%

API Request

1import cohere
2from cohere.classify import Example
3co = cohere.Client('{apiKey}')
4response = co.classify(
5  model='embed-english-v2.0',
6  inputs=["Biden Administration will Start Vaccinating Migrants at Border", "How Robots Can Assist Students with Disabilities"],
7  examples=[Example("New Era Begins at Warner Bros. Tinged with Nostalgia", "Technology"), Example("As Gas Prices Went Up, So Did the Hunt for Electric Vehicles", "Technology"), Example("Facial Recognition Goes to War", "Technology"), Example("US Says It Secretly Removed Malware Worldwide", "Technology"), Example("The Old-Timers Are Chasing Netflix", "Technology"), Example("Few Cars, Lots of Customers: Why Autos Are an Inflation Risk", "Economy"), Example("Supply Chains Widely Tainted by Forced Labour in China", "Economy"), Example("The US Economy is Booming. Why are Economists Worrying About a Recession?", "Economy"), Example("Industries hit hard by the pandemic continued their rebound", "Economy"), Example("Energy prices in Europe soar 45 percent as inflation hits another record", "Economy"), Example("New Drug Slashed Deaths Among Patients With Severe Covid, Maker Claims", "Health"), Example("Is 30 minutes of Exercise a Day Enough?", "Health"), Example("With a $2.1 Million Cure Their Only Hope, Parents Plead for Help Online", "Health"), Example("The FDA suspends use of a Glaxo antibody drug in the US as an Omnicron subvariant spreads", "Health"), Example("What to know about the Bird Flu Outbreak", "Health")])
8print('The confidence levels of the labels are: {}'.format(response.classifications))