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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entity-classification-0.1.3.tar.gz.
File metadata
- Download URL: entity-classification-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b146ac4ded1e5ec1e1cafbcd131a7c73e1d142c5ed82c0baf99f85defd108b5a
|
|
| MD5 |
418306f03d407398fd52b69cdc346fd3
|
|
| BLAKE2b-256 |
37cb2e381a4dc756e90528d6a9c8a235a845925093d8785e700ecdad2ed6f61b
|
File details
Details for the file entity_classification-0.1.3-py3-none-any.whl.
File metadata
- Download URL: entity_classification-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cc851b430193309b55d073408620c157ad7f5a9dd67d100d08a768da6b5041f
|
|
| MD5 |
2ceb4b9915702ad11a95981ee1d92bab
|
|
| BLAKE2b-256 |
3829cc608476f3224defb0b65fdcbc68180143854f8572d7092e6ed91a2fbae1
|