Skip to content

victorvsanchez/ncm-product-type-classifier

Repository files navigation

Product category (NCM) classifier

This is a model that receives the text description of a given product and predicts its NCM code. NCM is a classification of imported goods in Brazil for taxation purposes. It includes both an endpoint for API usage and a visual interface for demonstration and/or small scale usage.

It was developed on Google Cloud Vertex AI, based on data extracted from airport shops (not available in this repository). It was then containerized using Docker and served on Google Cloud App Engine.

API use

Example curl

curl --location --request POST "https://us-central1-ncm-dev.cloudfunctions.net/ncm-classifier" \
--header "AUTHENTICATION_KEY: " \
--header "Content-Type: application/json" \
--data-raw '{
  "input-text": "Men's Black Genuine Lambskin Leather Biker Jacket VINTAGE REAL BROWN MOTORCYCLE JACKETS FOR MEN" 
}'

Example response

{
  "input_text": {STRING},
  "confidence_score": {FLOAT},
  "ncm_code": {INT},
  "category_type": {STRING},
  "time_elapsed": {FLOAT}
}

Graphic interface

image

image

image

Metrics reached

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published