All Projects → algosenses → Stock_market_sentiment_analysis

algosenses / Stock_market_sentiment_analysis

股市情感分析

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Stock market sentiment analysis

stocktwits-sentiment
Stocktwits market sentiment analysis in Python with Keras and TensorFlow.
Stars: ✭ 23 (-82.31%)
Mutual labels:  sentiment-analysis, stock-market
pystocklib
Python library to Fetch & Analyze Stock Market data.
Stars: ✭ 23 (-82.31%)
Mutual labels:  sentiment-analysis, stock-market
Stock Market Prediction Web App Using Machine Learning And Sentiment Analysis
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
Stars: ✭ 101 (-22.31%)
Mutual labels:  stock-market, sentiment-analysis
Steward
A stock portfolio manager that provides neural net based short-term predictions for stocks and natural language processing based analysis on community sentiments.
Stars: ✭ 25 (-80.77%)
Mutual labels:  sentiment-analysis, stock-market
Stocksent
A Python library for sentiment analysis of various tickers from the latest news by trusted sources, and tools to plot results. 📈📊📰
Stars: ✭ 35 (-73.08%)
Mutual labels:  sentiment-analysis, stock-market
Stocksight
Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
Stars: ✭ 1,037 (+697.69%)
Mutual labels:  stock-market, sentiment-analysis
Bulbea
🐗 🐻 Deep Learning based Python Library for Stock Market Prediction and Modelling
Stars: ✭ 1,585 (+1119.23%)
Mutual labels:  stock-market, sentiment-analysis
Rnn Text Classification Tf
Tensorflow Implementation of Recurrent Neural Network (Vanilla, LSTM, GRU) for Text Classification
Stars: ✭ 114 (-12.31%)
Mutual labels:  sentiment-analysis
Absa keras
Keras Implementation of Aspect based Sentiment Analysis
Stars: ✭ 126 (-3.08%)
Mutual labels:  sentiment-analysis
Nlp Papers
Papers and Book to look at when starting NLP 📚
Stars: ✭ 111 (-14.62%)
Mutual labels:  sentiment-analysis
Sa Papers
📄 Deep Learning 中 Sentiment Analysis 論文統整與分析 😀😡☹️😭🙄🤢
Stars: ✭ 111 (-14.62%)
Mutual labels:  sentiment-analysis
Aspect Based Sentiment Analysis
Aspect-Based Sentiment Analysis Experiments
Stars: ✭ 115 (-11.54%)
Mutual labels:  sentiment-analysis
Cluedatasetsearch
搜索所有中文NLP数据集,附常用英文NLP数据集
Stars: ✭ 2,112 (+1524.62%)
Mutual labels:  sentiment-analysis
Stock Market Analysis And Prediction
Stock Market Analysis and Prediction is the project on technical analysis, visualization and prediction using data provided by Google Finance.
Stars: ✭ 112 (-13.85%)
Mutual labels:  stock-market
Rcnn Text Classification
Tensorflow Implementation of "Recurrent Convolutional Neural Network for Text Classification" (AAAI 2015)
Stars: ✭ 127 (-2.31%)
Mutual labels:  sentiment-analysis
Labeled Tweet Generator
Search for tweets and download the data labeled with its polarity in CSV format
Stars: ✭ 111 (-14.62%)
Mutual labels:  sentiment-analysis
Sumzerotrading
A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
Stars: ✭ 128 (-1.54%)
Mutual labels:  stock-market
Ajax Movie Recommendation System With Sentiment Analysis
Content-Based Recommender System recommends movies similar to the movie user likes and analyses the sentiments on the reviews given by the user for that movie.
Stars: ✭ 127 (-2.31%)
Mutual labels:  sentiment-analysis
Dan Jurafsky Chris Manning Nlp
My solution to the Natural Language Processing course made by Dan Jurafsky, Chris Manning in Winter 2012.
Stars: ✭ 124 (-4.62%)
Mutual labels:  sentiment-analysis
Trendyways
Simple javascript library containing methods for financial technical analysis
Stars: ✭ 121 (-6.92%)
Mutual labels:  stock-market

Stock Market Sentiment Analysis: 股市情感分析

情绪与股市

情绪与股市关系的研究由来已久,情绪是市场的一个重要影响因素已成为共识。
15年股灾时,亲历了一次交易灾难,眼见朋友的数千万在一周不到的时间内灰飞烟灭。那段时间市场的疯狂,让人深刻地明白:某些时候,股票市场这个抽象、复杂的系统,反映的不再是价值与供需,而仅仅是人的贪婪与恐惧。

说明

这份代码是股市情感分析项目的一部分,这个项目的本意是利用互联网提取投资者情绪,为投资决策的制定提供参考。
在国内这样一个非有效的市场中,分析投资者的情绪似乎更有意义。
这里我们利用标注语料分析股评情感,利用分析结果构建指标,之后研究指标与股市关系。
可以按以下顺序运行代码:

  1. python model_ml.py
  2. python compute_sent_idx.py
  3. python plot_sent_idx.py

数据

数据位于data目录下,包括三部分:

  1. 标注的股评文本:这些数据比较偏门,不是很好找,这里搜集整理了正负语料各4607条,已分词。
  2. 从东财股吧抓取的上证指数股评文本:约50万条,时间跨度为17年4月到18年5月。东财上证指数吧十分活跃,约7秒就有人发布一条股评。
  3. 上证指数数据:直接从新浪抓取下来的。

模型

情感分类模型也是文本分类模型,常用的包括机器学习模型与深度学习模型。

  1. model_ml.py:机器学习模型,对比测试了8个模型。
  2. model_dl.py:深度学习模型,对比测试了3个模型。

结果

在经过情感分析、指标构建这两个流程之后,我们可以得到一些有趣的结果,例如看涨情绪与股市走势的关系。
我们使用的看涨指标公式为:

经过处理之后,“看涨”情绪与股市走势的关系可以描画出来:

这里只展示诸多关系中的一个。

总结

这份代码仅为了演示如何从互联网中提取投资者情绪,并研究情绪与股市的关系。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].