Skip to content

gripskrieg/Dreams-Port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dream Analysis

This project is a Python port of a MATLAB script designed to analyze dream journals. It performs text preprocessing, generates word clouds, calculates word frequencies, and performs sentiment analysis.

Features

  • Text Preprocessing: Tokenization, lemmatization, stop word removal, and filtering.
  • Word Cloud: Visual representation of the most frequent words.
  • Frequency Analysis: Bar chart of the top 20 words.
  • Sentiment Analysis: Uses VADER to determine the emotional tone of the text.

Prerequisites

  • Python 3.x

Installation

  1. Clone the repository or download the files.

  2. Install the required Python packages:

    pip install -r requirements.txt

    Note: The script will automatically download necessary NLTK data (stopwords, wordnet, etc.) on the first run.

Usage

  1. Run the script:

    python dreams_analysis.py
  2. The application window will open.

  3. Click "Load Dream File" and select your text file (e.g., dreams_sample.txt or your own dreams.txt).

  4. Explore the tabs:

    • Word Cloud: Visual representation of the most frequent words.
    • Word Frequency: Bar chart of the top 20 words.
    • Statistics & Sentiment: Detailed word counts and sentiment analysis scores.

File Structure

  • dreams_analysis.py: The main Python script.
  • requirements.txt: List of dependencies.
  • dreams.txt: Input file containing your dream text (you need to create this).

About

This project is a Python port of a MATLAB script designed to analyze dream journals. It performs text preprocessing, generates word clouds, calculates word frequencies, and performs sentiment analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages