Skip to main content

It connects to the service that classifies given sentence

Project description

Text Classification

This plugin classifies provided text.

Configuration

{
  "source": {
    "name": "Text classification",
    "id": "e7a3979e-7f31-452b-a571-8ca613de77fb"
  },
  "language": "en",
  "model": "press",
  "title": "The iPhone 13 isn’t a game changer",
  "text": "The iPhone 13 isn’t a game changer for Apple’s series of smartphones, but it’s an ..."
}
  • source.id - Id that points to resource with an access token. See below for resource configuration schema.
  • language - language of the text to classify. (en|sp|it|pt|ct|fr)
  • title - optional title of the text
  • text - text to classify

Resource configuration

{
  "token": "dgrhfcd6hhdj706..."
}

Output

Example

{
  "categories": [
    {
      "code": "13016000",
      "label": "science and technology - electronics",
      "abs_relevance": "0.2833175",
      "relevance": "100"
    }
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracardi-text-classification-0.6.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page