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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
icon: newspaper
|
| 3 |
+
description: >-
|
| 4 |
+
Two types of news datasets have been developed, one is ticker-matched, and the
|
| 5 |
+
next is theme-matched.
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# News Sentiment
|
| 9 |
+
|
| 10 |
+
> **Data Notice**: This dataset provides academic research access with a 6-month data lag.
|
| 11 |
+
> For real-time data access, please visit [sov.ai](https://sov.ai) to subscribe.
|
| 12 |
+
> For market insights and additional subscription options, check out our newsletter at [blog.sov.ai](https://blog.sov.ai).
|
| 13 |
+
|
| 14 |
+
```python
|
| 15 |
+
from datasets import load_dataset
|
| 16 |
+
df_news_sentiment = load_dataset("sovai/news_sentiment", split="train").to_pandas().set_index(["article_id","date"])
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
Data is updated quarterly as data arrives after market close US-EST time.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
`Tutorials` are the best documentation — [<mark style="color:blue;">`News Sentiment Analaysis Tutorial`</mark>](https://colab.research.google.com/github/sovai-research/sovai-public/blob/main/notebooks/datasets/News.ipynb)
|
| 25 |
+
|
| 26 |
+
<table data-column-title-hidden data-view="cards"><thead><tr><th>Category</th><th>Details</th></tr></thead><tbody><tr><td><strong>Input Datasets</strong></td><td>News Scrapers, Public Event Data</td></tr><tr><td><strong>Models Used</strong></td><td>Fuzzy Matching</td></tr><tr><td><strong>Model Outputs</strong></td><td>Sentiment Scores</td></tr></tbody></table>
|
| 27 |
+
|
| 28 |
+
## Description
|
| 29 |
+
|
| 30 |
+
This dataset provides comprehensive news sentiment analysis, offering ticker-matched and theme-matched data on various aspects of news coverage.
|
| 31 |
+
|
| 32 |
+
It includes metrics on sentiment, tone, polarity, and article count, enabling investors and analysts to gauge public perception and potential market impacts of news.
|
| 33 |
+
|
| 34 |
+
## Data Access
|
| 35 |
+
|
| 36 |
+
#### Sentiment Data - All Data
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
import sovai as sov
|
| 40 |
+
sov.data("news/sentiment", full_histor=True)
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
#### Sentiment Data - Latest Data
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
import sovai as sov
|
| 47 |
+
sov.data("news/sentiment", full_history=True)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
#### Sentiment Data -Filtered Dataset
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
import sovai as sov
|
| 54 |
+
df_news = sov.data("news/sentiment", start_date="2017-03-30", tickers=["MSFT","TSLA"])
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
As you have done for `sentiment` above you can do for news `tone`, `polarity`, `activeness` etc.
|
| 58 |
+
|
| 59 |
+
### All Variations
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
import sovai as sov
|
| 63 |
+
|
| 64 |
+
# Sentiment Dataset
|
| 65 |
+
df_sentiment = sov.data("news/sentiment")
|
| 66 |
+
# Provides sentiment scores for news articles, helping gauge the overall emotional tone of news coverage.
|
| 67 |
+
|
| 68 |
+
# Tone Dataset
|
| 69 |
+
df_tone = sov.data("news/tone")
|
| 70 |
+
# Offers insights into the overall tone of news articles, differentiating between neutral, positive, or negative coverage.
|
| 71 |
+
|
| 72 |
+
# Positive Sentiment Dataset
|
| 73 |
+
df_positive = sov.data("news/positive")
|
| 74 |
+
# Focuses specifically on positive sentiments expressed in news articles.
|
| 75 |
+
|
| 76 |
+
# Negative Sentiment Dataset
|
| 77 |
+
df_negative = sov.data("news/negative")
|
| 78 |
+
# Provides information on negative sentiments in news articles, valuable for risk assessment.
|
| 79 |
+
|
| 80 |
+
# Polarity Dataset
|
| 81 |
+
df_polarity = sov.data("news/polarity")
|
| 82 |
+
# Measures how polarizing news coverage is, indicating how divisive or controversial certain topics or entities are.
|
| 83 |
+
|
| 84 |
+
# Match Quality Dataset
|
| 85 |
+
df_match = sov.data("news/match_quality")
|
| 86 |
+
# Assesses the quality of matches between news articles and specific entities or topics.
|
| 87 |
+
|
| 88 |
+
# Pronouns Dataset
|
| 89 |
+
df_pronouns = sov.data("news/pronouns")
|
| 90 |
+
# Analyzes the use of pronouns in news articles.
|
| 91 |
+
|
| 92 |
+
# Activeness Dataset
|
| 93 |
+
df_activeness = sov.data("news/activeness")
|
| 94 |
+
# Measures the level of activity or dynamism in news coverage.
|
| 95 |
+
|
| 96 |
+
# Associated People Dataset
|
| 97 |
+
df_associated_people = sov.data("news/associated_people")
|
| 98 |
+
# Tracks individuals mentioned in association with specific entities or topics.
|
| 99 |
+
|
| 100 |
+
# Article Count Dataset
|
| 101 |
+
df_article_count = sov.data("news/article_count")
|
| 102 |
+
# Provides data on the volume of articles related to specific topics or entities.
|
| 103 |
+
|
| 104 |
+
# Associated Companies Dataset
|
| 105 |
+
df_associated_companies = sov.data("news/associated_companies")
|
| 106 |
+
# Tracks companies mentioned in association with specific entities or topics in news articles.
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
### Themed Sentiment
|
| 110 |
+
|
| 111 |
+
**df\_sentiment\_score** = `sov.data("news/sentiment_score")` Measures **emotional tone** of news articles. **Positive scores**: favorable news; **Negative scores**: unfavorable news.
|
| 112 |
+
|
| 113 |
+
```python
|
| 114 |
+
import sovai as sov
|
| 115 |
+
df_sentiment_score = sov.data("news/sentiment_score")
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
<figure><img src="https://raw.githubusercontent.com/sovai-research/sovai-documentation/main/.gitbook/assets/news_sentiment_1 (2).png" alt=""><figcaption></figcaption></figure>
|
| 119 |
+
|
| 120 |
+
**df\_polarity\_score** = `sov.data("news/polarity_score")` Gauges **opinion intensity** in news. **Higher scores**: stronger opinions; **Lower scores**: more neutral reporting.
|
| 121 |
+
|
| 122 |
+
```python
|
| 123 |
+
import sovai as sov
|
| 124 |
+
df_polarity_score = sov.data("news/polarity_score")
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
**df\_topic** = `sov.data("news/topic_probability")` Indicates **topic prevalence** in news. **Higher values**: more frequently discussed topics.
|
| 128 |
+
|
| 129 |
+
All use various statistical measures (mean, median, etc.) across financial/economic topics over time.
|
| 130 |
+
|
| 131 |
+
```python
|
| 132 |
+
import sovai as sov
|
| 133 |
+
df_topic = sov.data("news/topic_probability")
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
### Vizualisations
|
| 137 |
+
|
| 138 |
+
#### Strategy
|
| 139 |
+
|
| 140 |
+
```python
|
| 141 |
+
import sovai as sov
|
| 142 |
+
sov.plot("news", chart_type="strategy", ticker='NVDA')
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
<figure><img src="https://raw.githubusercontent.com/sovai-research/sovai-documentation/main/.gitbook/assets/news_sentiment_2 (2).png" alt=""><figcaption></figcaption></figure>
|
| 146 |
+
|
| 147 |
+
#### Econometrics
|
| 148 |
+
|
| 149 |
+
```python
|
| 150 |
+
import sovai as sov
|
| 151 |
+
sov.report("news", report_type="econometric")
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
<figure><img src="https://raw.githubusercontent.com/sovai-research/sovai-documentation/main/.gitbook/assets/news_sentiment_3 (2).png" alt=""><figcaption></figcaption></figure>
|
| 155 |
+
|
| 156 |
+
#### Analysis
|
| 157 |
+
|
| 158 |
+
```python
|
| 159 |
+
import sovai as sov
|
| 160 |
+
|
| 161 |
+
sov.plot("news", chart_type="analysis")
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
<figure><img src="https://raw.githubusercontent.com/sovai-research/sovai-documentation/main/.gitbook/assets/news_sentiment_4 (2).png" alt=""><figcaption></figcaption></figure>
|
| 165 |
+
|
| 166 |
+
## Data Dictionary
|
| 167 |
+
|
| 168 |
+
<table><thead><tr><th width="170">Feature Name</th><th width="364">Description</th><th width="100">Type</th><th>Example</th></tr></thead><tbody><tr><td>match_quality</td><td>Quality score of the match between the article and the entity, indicating the relevance and accuracy of the match.</td><td>float</td><td>99.75</td></tr><tr><td>within_article</td><td>Number of mentions of the entity within the article, indicating the focus on the entity in the article's content.</td><td>int</td><td>2</td></tr><tr><td>relevance</td><td>The average salience of the entity across the articles, indicating the importance or prominence of the entity.</td><td>float</td><td>0.022049</td></tr><tr><td>magnitude</td><td>A measure of the intensity or strength of the sentiment expressed in the article.</td><td>float</td><td>18.203125</td></tr><tr><td>sentiment</td><td>A score representing the overall sentiment (positive or negative) of the article.</td><td>float</td><td>0.054504</td></tr><tr><td>article_count</td><td>The total number of articles associated with the entity, indicating the level of media attention or coverage.</td><td>int</td><td>1666</td></tr><tr><td>associated_people</td><td>Count of unique people mentioned in the context of the entity, reflecting its association with various individuals.</td><td>int</td><td>143</td></tr><tr><td>associated_companies</td><td>Count of unique companies mentioned in relation to the entity, indicating its business connections.</td><td>int</td><td>287</td></tr><tr><td>tone</td><td>The overall tone of the article, derived from a textual analysis of its content.</td><td>float</td><td>0.237061</td></tr><tr><td>positive</td><td>The score quantifying the positive sentiments expressed in the article.</td><td>float</td><td>2.828125</td></tr><tr><td>negative</td><td>The score quantifying the negative sentiments expressed in the article.</td><td>float</td><td>2.591797</td></tr><tr><td>polarity</td><td>The degree of polarity in the sentiment, indicating the extent of opinionated content.</td><td>float</td><td>5.421875</td></tr><tr><td>activeness</td><td>A measure of the dynamism in the language used, possibly indicating the urgency of the article.</td><td>float</td><td>22.031250</td></tr><tr><td>pronouns</td><td>The count of pronouns used in the article, indicative of the narrative style or subject focus.</td><td>float</td><td>0.995117</td></tr><tr><td>word_count</td><td>The total number of words in the article, giving an indication of its length or detail.</td><td>int</td><td>1084</td></tr></tbody></table>
|
| 169 |
+
|
| 170 |
+
## Use Case
|
| 171 |
+
|
| 172 |
+
This dataset provides a comprehensive analysis of various entities (such as companies and individuals) based on their media coverage and associated articles. It's designed to assist investors in understanding the market sentiment, media focus, and the overall perception of entities in which they might be interested. The data is extracted and processed from a wide range of articles, ensuring a broad and in-depth view of each entity.
|
| 173 |
+
|
| 174 |
+
This dataset is an invaluable resource for investors seeking to gauge public perception, media sentiment, and the prominence of entities in the news. It can be used for:
|
| 175 |
+
|
| 176 |
+
* Sentiment analysis to understand the market mood.
|
| 177 |
+
* Identifying trends in media coverage related to specific entities.
|
| 178 |
+
* Assessing the impact of news on stock performance.
|
| 179 |
+
* Conducting peer comparison based on media presence and sentiment.
|
| 180 |
+
|
| 181 |
+
***
|
news_sentiment.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f5454dab5f1cbcc8b286562ce1b550f6d129dce645ba4939cc35d5c0afbfa78
|
| 3 |
+
size 89197995
|