Stock Market Prediction Web App based on Machine Learning and Sentiment Analysis of Tweets (API keys included in code). The front end of the Web App is based on Flask and Wordpress. The App forecasts stock prices of the next seven days for any given stock under NASDAQ or NSE as input by the user. Predictions are made using three algorithms: ARIMA, LSTM, Linear Regression. The Web App combines the predicted prices of the next seven days with the sentiment analysis of tweets to give recommendation whether the price is going to rise or fall
MIT License
629
stars
208
forks
source link
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. #15
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(*req.view_args)
File "/Users/macbook/Downloads/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master/main.py", line 475, in insertintotable
polarity,tw_list,tw_pol,pos,neg,neutral = retrieving_tweets_polarity(quote)
File "/Users/macbook/Downloads/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master/main.py", line 368, in retrieving_tweets_polarity
for sentence in blob.sentences:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/decorators.py", line 24, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/blob.py", line 639, in sentences
return self._create_sentence_objects()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/blob.py", line 683, in _create_sentence_objects
sentences = sent_tokenize(self.raw)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/base.py", line 64, in itokenize
return (t for t in self.tokenize(text, args, **kwargs))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/decorators.py", line 38, in decorated
raise MissingCorpusError()
textblob.exceptions.MissingCorpusError:
Looks like you are missing some required data for this feature.
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(*req.view_args) File "/Users/macbook/Downloads/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master/main.py", line 475, in insertintotable polarity,tw_list,tw_pol,pos,neg,neutral = retrieving_tweets_polarity(quote) File "/Users/macbook/Downloads/Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master/main.py", line 368, in retrieving_tweets_polarity for sentence in blob.sentences: File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/decorators.py", line 24, in get value = obj.dict[self.func.name] = self.func(obj) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/blob.py", line 639, in sentences return self._create_sentence_objects() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/blob.py", line 683, in _create_sentence_objects sentences = sent_tokenize(self.raw) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/base.py", line 64, in itokenize return (t for t in self.tokenize(text, args, **kwargs)) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textblob/decorators.py", line 38, in decorated raise MissingCorpusError() textblob.exceptions.MissingCorpusError: Looks like you are missing some required data for this feature.