Giter VIP home page Giter VIP logo

depression-chatbot's Introduction

Depression-Chatbot

In today's world, depression can hit anyone real hard. Depression is an extremely complex disease. No one knows exactly what causes it. The possible reasons could be loneliness, relationships, deadlines, genetics, abuse, conflicts, medications, major illnesses etc. Some people may experience depression and feel overwhelmed with sadness and loneliness for no known reason. People dealing with depression want to tell their stories to somebody and they are mostly afraid to speak to their close friends and relatives. Depression-Chatbot is an attempt to cure depression among the people by gradually understanding the root cause. It is developed from scratch with the intention of helping people in regulating their moods and eliminating distorted and negative thinking.

Implementation

A basic Sequence to Sequence architecture is used for building conversational chatbot using Tensorflow framework.
Scrapped the title of subreddits and its comments in a nested way so as to preserve sequence of "coversations" among the people on reddit. Some of the subreddits that were scraped includes r/depression_help, r/askatherapist, r/Stress, r/relationships, r/talktherapy etc.

Requirements

User Interface

depression-chatbot's People

Contributors

chinmayrane16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

depression-chatbot's Issues

data.csv does not exist

On running S2SCHatbot.ipynb, it gives error

FileNotFoundError: File b'data.csv' does not exist
Now, this file does not exist on repository, and is also not created by PreProcess.ipynb
How do I get it.

missing a required aargument: 'units'

Getting this error on running app.py

Traceback (most recent call last):
File "/home/aman/anaconda3/lib/python3.6/inspect.py", line 2842, in _bind
arg_val = next(arg_vals)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 2464, in call
return self.wsgi_app(environ, start_response)
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/aman/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/aman/Desktop/NLP_chatbot/Depression-Chatbot-master/Deploy Flask/app.py", line 213, in index
bot_response = respond(sentence)
File "/home/aman/Desktop/NLP_chatbot/Depression-Chatbot-master/Deploy Flask/app.py", line 151, in respond
model = BasicS2SModel(vocab=vocab,mode="inference",use_beam_search=False,num_layers=3)
File "/home/aman/Desktop/NLP_chatbot/Depression-Chatbot-master/Deploy Flask/model.py", line 122, in init
self.setup_attention_decoder()
File "/home/aman/Desktop/NLP_chatbot/Depression-Chatbot-master/Deploy Flask/model.py", line 255, in setup_attention_decoder
name = "BahdanauAttention"
File "/home/aman/anaconda3/lib/python3.6/site-packages/typeguard/init.py", line 889, in wrapper
memo = _CallMemo(python_func, _localns, args=args, kwargs=kwargs)
File "/home/aman/anaconda3/lib/python3.6/site-packages/typeguard/init.py", line 110, in init
self.arguments = signature.bind(*args, **kwargs).arguments
File "/home/aman/anaconda3/lib/python3.6/inspect.py", line 2965, in bind
return args[0]._bind(args[1:], kwargs)
File "/home/aman/anaconda3/lib/python3.6/inspect.py", line 2880, in _bind
raise TypeError(msg) from None
TypeError: missing a required argument: 'units'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.