Via universal sentence encoder and k-means
Before running the application, it's recommended to rebuild the tensorflow-node for your environment.
## make sure you have the necessary packages installed.
## If you're unsure about which packages are required, refer to the Dockerfile for guidance.
npm run rebuild:tsjsOnce the rebuild is complete
npm install
npm run startTo build the Docker image for the application, make sure to set the HTTP_PORT build argument to match the port in your .env file.
docker build --build-arg HTTP_PORT=4544 --tag hermeslin/sentence-classification:latest .To run the Docker container with your .env file for environment variable configuration, execute the following:
docker run -p 4544:4544 --env-file .env hermeslin/sentence-classification:latestIf you need to access the container's shell directly (for debugging or other purposes), you can override the entry point and open a Bash shell with:
docker run -it --entrypoint /bin/bash -p 4544:4544 --env-file .env hermeslin/sentence-classification:latest