Next

How to Extract topics from text with Python

With a few lines of Python code, you can extract topics from text. Leverage use-case-ready, vertically pre-trained models, packaged in an API that accepts any text input, and responds with processed text and extracted metadata as output.
Use Language Skill

Topics

Identify topics discussed in articles and conversations
With Text Input

Text

Analyze any text, including emails, chats, documents, reviews, transcripts, and tweets
import oneai oneai.api_key = "CLICK_TO_GET_YOUR_API_KEY" pipeline = oneai.Pipeline(steps=[ oneai.skills.Topics(), ]) output = pipeline.run("your_input_here") print(output)
Copy
import OneAI from 'oneai'; const oneai = new OneAI({apiKey: 'CLICK_TO_GET_YOUR_API_KEY'}); const pipeline = new oneai.Pipeline( oneai.skills.(), ); const output = await pipeline.run('your_input_here'); console.log(output);
Copy
curl -X POST \ 'https://api.oneai.com/api/v0/pipeline' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'api-key: CLICK_TO_GET_YOUR_API_KEY' \ -d '{ "input": "your_input_here", "steps": [{ "skill": "Topics" }] }'
Copy
Convert Videos To AI Agents With Our GPT AgentMaker
Trusted by

Add it to Your Product in Minutes

One AI Language Studio
01.
Test your Language AI pipeline with your Text in the Studio
Pipeline API Call
02.
Use the Topics pipeline in your code
One AI Language Studio
03.
Enjoy AI-powered Topics for Text in your apps & workflows

Connect it to the Tools you use

GCP logoAzure logoAWS logoGmail logoSalesforce logoHubspot logoSlack logoZoom logoZapier logo
See Documentation

Redeem Your 1M Free Words

Add Language AI to your product now
1,000,000 words monthly, no credit card required
Sign Up Now
Check us out on