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
Get Started
Trusted by Innovative Companies
daily.dev logokai logoTUNED logoGetEllipsis logoNLX logoanima logoclipmaker logoGummySearch logo

Add it to Your Product in Minutes

One AI Language Studio
01.
Build & Test your Language AI Pipeline in the Playground
Pipeline API Call
02.
Use the pipeline in your code
One AI Language Studio
03.
Let your users enjoy products that understand language

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
TechCrunch logoGeektime logoTheMarker logoTechCrunch logo
Python
Javascript
cURL
import oneai oneai.api_key = "CLICK_TO_GET_YOUR_API_KEY" pipeline = oneai.Pipeline(steps=[ oneai.skills.Transcribe(), ]) 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.transcribe(), ); 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": "transcribe" }] }'
Copy