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 details)

Uploaded Source

Built Distribution

File details

Details for the file tracardi-text-classification-0.6.0.tar.gz.

File metadata

  • Download URL: tracardi-text-classification-0.6.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for tracardi-text-classification-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1533310d81c025002989e9f5ef5c1707a9bbd219f28e600e9fdd22a6857954e0
MD5 9b7b6aec745414cac7fc11c41723bc90
BLAKE2b-256 c5fcd431b7e1fe58124876477935ec0473f8a8fd96be2af190e5c987e5b4e4e3

See more details on using hashes here.

File details

Details for the file tracardi_text_classification-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: tracardi_text_classification-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for tracardi_text_classification-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a29ee116b713de46b06af9a98c46904a32aa3ea7f8e0e94d46820230e15990
MD5 dce704e882a95e38fde0f0ad4b570a27
BLAKE2b-256 6f2281c622fa96eec383c7d1d73f0b2c05c0ea13563056da809802c3b57b1ae2

See more details on using hashes here.

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