Stock-Sentiment-

所属分类:以太坊
开发工具:Jupyter Notebook
文件大小:2487KB
下载次数:0
上传日期:2022-04-16 06:27:19
上 传 者sh-1993
说明:  应用自然语言处理分析以比特币和以太坊为特色的最新新闻文章中的情绪
(Appling natural language processing to analyze the Sentiment in the latest news articles featuring Bitcoin and Ethereum)

文件列表:
.env (147, 2022-04-16)
Crypto_sentiment.ipynb (1314331, 2022-04-16)
Resources (0, 2022-04-16)
Resources\images (0, 2022-04-16)
Resources\images\btc_df_describe.png (15587, 2022-04-16)
Resources\images\btc_df_score.png (19473, 2022-04-16)
Resources\images\btc_icloud.png (579873, 2022-04-16)
Resources\images\btc_most.png (6734, 2022-04-16)
Resources\images\btc_ner.png (90377, 2022-04-16)
Resources\images\btc_ngram.png (16004, 2022-04-16)
Resources\images\ethe_cloud.png (526211, 2022-04-16)
Resources\images\ethe_ner.png (106491, 2022-04-16)
Resources\images\most_common_ethe.png (6778, 2022-04-16)
Resources\images\tokens_df.png (68149, 2022-04-16)
Resources\images\wc_btc.png (206290, 2022-04-16)

# Stock Sentiment ### By Nedal Mahanweh ## INTRODUCTION In this project we will apply natural language processing to understand the sentiment in the latest news articles featuring Bitcoin and Ethereum. we will also apply fundamental NLP techniques to better understand the other factors involved with the coin prices such as common words and phrases and organizations and entities mentioned in the articles ____________________________________________________________________________________ ## Files [Crypto_Sentiment](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Crypto_sentiment.ipynb) [Resources](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources) ____________________________________________________________________________________ ## Sentiment Analysis _________________________________________________________________________________________ We will Use the newsapi to pull the latest news articles for Bitcoin and Ethereum and create a DataFrame of sentiment scores for each coin. ##### The Bitcoin sentiment scores DataFrame ![bitcoin_dataframe](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_df_score.png) ##### Describe the Bitcoin Sentiment ![bitcoin_dataframe_describe](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_df_describe.png) ### Obeservations after creating the sentiment scores DataFram for both bitcoin and etherium then applying the ` describe() `methode , we were able to come to this conclusion * the Bitcoin have the highest mean positive score * Ethereum and Bitcoin have the same compound score * Ethereum and Bitcoin have the same positive score ------------------------------------------------------------------------------------------------- ## Natural Language Processing ----------------------------------------------------------------------------------------------- ## 1- Tokenizer Using the ` def function ` was helpful to complete all the tokenizer process Creating a new tokens column for Bitcoin and Ethereum and adding them to the original DataFrame ![tokeniser](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/tokens_df.png) ____________________________________________________________________________________________ ### 2- NGrams and Frequency Analysis In this section we will look at the ngrams and word frequency for each coin. Generate the `Bitcoin ` N-grams where N=2 ![ngram](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_ngram.png) Using `token_count ` to get the top 10 words for ` Bitcoin ` ![most common](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_most.png) ## -Word Clouds In this section, we will generate word clouds for each coin to summarize the news for each coin ##### Generate the Bitcoin word cloud ### The Bitcoin word cloud ![world cloud](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_icloud.png) ### The Ethereum word cloud ![world cloud](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/ethe_cloud.png) ______________________________________________________________________________________ ### 3. Named Entity Recognition In this section, you will build a named entity recognition model for both coins and visualize the tags using SpaCy `` Bitcoin NER `` ![bicoin_ner](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/btc_ner.png) ### Ethereum NER ![ethe_ner](https://github.com/malkawenedal/Stock-Sentiment-/blob/master/Resources/images/ethe_ner.png)

近期下载者

相关文件


收藏者