Skip to main content

Perform Intent Classification using a list of Entities

Project description

entity-classification

Perform Entity Classification via two inputs: entity_names: list and input_tokens: list

Assume you wish to classify network_topology and you have these tokens extracted from your text:

[
    'edge',
    'network',
    'moderate',
    'cat5',
    'topology',
    'locate'
]

Use this code

from entity_classification import classify

classify(entity_names=['network_topology'], input_tokens=input_tokens)

The result will be

{
    'result': ['network_topology'],
    'tokens': ['network', 'topology']
}

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

entity-classification-0.1.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

entity_classification-0.1.3-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

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