NK Artificial Intelligence
Welcome to NKIA or NKAI in English. This project is used to categorize products based on its caracteristics, there is 29 different classes of food products. Another usage is to distinguish between food and non-food products.
Requirements
-
Install requirements:
pip install -r requirements.txt --user
-
Install NLTK stopwords:
python -m nltk.downloader stopwords
Usage
- Import classify class:
from nkia.ml.classify_products import ClassifyProducts as cp
- Predict product class:
cp().inference_from_category_model(product_name=['frozen fish'])- Returns: String containing the predicted class name
- Parameters:
inference_from_category_model(ingredients=[''], allergics=[''], description=[''], product_name=[''])- All the parameters must be in a single string format.
- Predict if product is a food or not:
cp().inference_from_food_model(product_name=['chocolate cake'])- Returns: String 'food' or 'not food'
- Note: Food classifier just has the product name as parameter.
Examples
cp().inference_from_category_model(ingredients=['sugar salt vanilla orange'], allergics=['peanuts'], description=['this is an awesome product, hummmm'], product_name=['very delicious candy'])
Metadata
Release files for nkia 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nkia-1.9.1.tar.gz | 42.9 kB | Without provenance | Details for nkia-1.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nkia-1.9.1-py3-none-any.whl | Python 3 | none | any | Details for nkia-1.9.1-py3-none-any.whl |
Total release size: 52.8 kB
Release files / nkia-1.9.1.tar.gz
| Download URL | nkia-1.9.1.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5832105b8c29bcf190f16c9e4f00fbdac1f2fe1c0214349ce7a949fe12d4b0e7
|
|
BLAKE2b-256 checksum How to use checksums |
7515e515a5d08429b29c27ec333691eb801830d02876cee5cd5a61246487e3b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
|
Release files / nkia-1.9.1-py3-none-any.whl
| Download URL | nkia-1.9.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
960fd04cb32ea5c2099f795081a136ccb11bb38e4fe6cd26aab28cf6f487966c
|
|
BLAKE2b-256 checksum How to use checksums |
fda1e4db7d13303ea9cc4902deab0ce59322591717aceebedc252fc5c84faf4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
|
Security for nkia 1.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.