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
Built Distribution
Close
Hashes for entity-classification-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b146ac4ded1e5ec1e1cafbcd131a7c73e1d142c5ed82c0baf99f85defd108b5a |
|
MD5 | 418306f03d407398fd52b69cdc346fd3 |
|
BLAKE2b-256 | 37cb2e381a4dc756e90528d6a9c8a235a845925093d8785e700ecdad2ed6f61b |
Close
Hashes for entity_classification-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cc851b430193309b55d073408620c157ad7f5a9dd67d100d08a768da6b5041f |
|
MD5 | 2ceb4b9915702ad11a95981ee1d92bab |
|
BLAKE2b-256 | 3829cc608476f3224defb0b65fdcbc68180143854f8572d7092e6ed91a2fbae1 |