Skip to content

Tiagobuzzz/MoodMapper

Repository files navigation

MoodMapper

Simple tool to map emotions in text.

Usage

  1. Save your text to a file, e.g. mytext.txt.
  2. Run the analyzer:
python3 moodmapper.py mytext.txt --json result.json --lang pt

The script will print the dominant emotion for each sentence, a short summary and suggestions for color and music. Use --lang pt for Portuguese text (default is English). If --json is provided, the per-sentence analysis is saved to the given file in JSON format.

With transformers

Install additional dependencies:

pip install transformers torch matplotlib

Run the advanced analyzer which draws a sentiment chart and can export results to JSON or PNG:

python3 moodmapper_transformer.py mytext.txt --json result.json --image grafico.png

Web app (Streamlit)

Install all optional dependencies:

pip install -r requirements.txt

Run the interactive web interface:

streamlit run streamlit_app.py

Enter your text (one line per snippet) and click Analisar to see the emotional analysis, color-coded chart and suggested soundtrack. You can also download the JSON results directly from the page.

About

Dynamic Emotional Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages