▓░▒█████ ▒█████ ████████ ▒█████ █████ ████████
▓░▒██ ██ ██ ██ ██ ██ ██ ██ ██ ██
▒░▒██ ██ ██ ██ ██ ███████ ██ ██ ██
░▒ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
░ █████ █████ ██ ██████ █████ ██
A Cognitive Behavioral Therapy chatbot that helps identify cognitive distortions in user input using spaCy's NLP capabilities.
- Cognitive Distortion Detection: Identifies 8 common CBT distortions using both exact phrase matching and semantic similarity
- CBT Responses: Provides thoughtful CBT reflections for each detected distortion
- Interactive Chat Interface: Clean, user-friendly console interface
- Modular Architecture: Well-organized code structure with separate modules for data, detection, and UI
- Clone this repository
- Install dependencies:
pip install -r requirements.txt python -m spacy download en_core_web_md
- Run the chatbot:
python app.py
app.py- Main entry pointcbt_data.py- Cognitive distortion phrases and CBT responsescbt_detector.py- Core detection logic using spaCychatbot.py- Interactive chat interfacerequirements.txt- Python dependencies
- Add sentiment analysis
- Implement more cognitive distortions
- Add conversation history tracking
- Create web interface