sentimentanalysis_keras

command
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

README

ANN Sentiment Analysis Container

This container runs an Artificial Neural Network (ANN) based sentiment analysis using Keras and TensorFlow. The ANN is trained on a dataset of phrases and their corresponding sentiment labels (positive or negative). Once the model is trained, it predicts the sentiment of new phrases and prints the results.

Requirements

  • Docker

Building the Container

  1. Make sure the Dockerfile and the 20.go file are in the same directory.
  2. Open a terminal and navigate to the directory containing the Dockerfile.
  3. Run the following command to build the Docker container:
docker build -t ann-sentiment-analysis .

This command builds a Docker container with the tag ann-sentiment-analysis.

Running the Container

After building the container, you can run it using the following command:

docker run --rm ann-sentiment-analysis

This command runs the container and automatically removes it after execution. The container will train the ANN model on the provided dataset, predict the sentiment of new phrases, and print the results.

Customizing the Container

You can add more training examples and modify the model parameters by editing the 20.go file. After making any changes, rebuild the container using the docker build command as described above.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL