DeepDream Learning uses Natural Language Processing (NLP) and Machine Learning (ML) to analyze and classify dreams based on emotional content. Input your dream, and the tool identifies emotions such as anger, joy, and fear, providing insights into your dream's emotional content. This project leverages data from DreamBank and advanced text analysis techniques to offer a deeper understanding of your subconscious mind.
- Text Preprocessing: Cleans and tokenizes dream text to prepare for analysis.
- Topic Modeling: Uses Latent Dirichlet Allocation (LDA) to extract topics from dream content.
- Sentiment Analysis: Analyzes sentiment using VADER to capture emotional tones.
- Emotion Classification: Classifies dreams into various emotional categories using a RandomForestClassifier.
- Interactive Analysis: Provides emotional insights based on user-inputted dream descriptions.
-
Clone the repository:
git clone https://github.com/sompuradhruv/DeepDream-Learning.git
-
Navigate to the project directory:
cd DeepDream-Learning -
Install Python (if not already installed):
Ensure you have Python 3.6 or later installed. You can download it from python.org.
-
Install the required packages:
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the necessary Python libraries:
pip install -r requirements.txt
-
Prepare the dataset:
Unzip the dataset file to use it in its CSV format.
-
Run the script:
python code.py
-
Input your dream description when prompted and receive emotional insights.
Here is how you can use the classify_dream function:
user_input = "I had a dream where I was flying over a beautiful landscape."
dream_features = classify_dream(user_input)
print("Dream features:")
for emotion, value in dream_features.items():
print(f"{emotion}: {value}")Feel free to open issues or submit pull requests to enhance the functionality or improve the analysis methods.