Skip to main content

This is a module to predict the products category using artificial inteligence.

Project description

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.

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_model(product_name=['frozen fish'])
    • Returns: String containing the predicted class name
  • Parameters:
    • inference_from_model(ingredients=[''], allergics=[''], description=[''], product_name=[''])
    • All the parameters must be in a single string format.

Examples

  • cp().inference_from_model(['sugar salt vanilla orange'], allergics=['peanuts'], description=['this is an awesome product, hummmm'], product_name=['very delicious candy'])

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

nkia-0.2.0.tar.gz (41.6 kB view hashes)

Uploaded Source

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