DEV Community

miccho27
miccho27

Posted on

NLP Without ML: Sentiment Analysis, Keywords, Topics via API

Extract Insights From Customer Feedback

Analyze sentiment, keywords, and topics without training models.

Python

import requests

def analyze(text):
    r = requests.post(
        'https://text-analysis-api.p.rapidapi.com/analyze',
        json={'text': text, 'features': ['sentiment', 'keywords', 'topics']},
        headers={'X-RapidAPI-Key': 'YOUR_KEY', 'X-RapidAPI-Host': 'text-analysis-api.p.rapidapi.com'}
    )
    return r.json()
Enter fullscreen mode Exit fullscreen mode

Features

  • Sentiment (positive/negative/neutral)
  • Keywords extraction
  • Topic detection
  • Entity recognition
  • Summarization

Pricing: Free 1K/mo | Pro $19.99 (100K/mo)

Get started: https://rapidapi.com/miccho27-5OJaGGbBiO/api/text-analysis-api

Top comments (0)