Skip to content

Commit c4e9f6d

Browse files
update images and url for AI4Finance
1 parent 3a39a62 commit c4e9f6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
Our emotional annotation algorithm is built upon the foundation laid by the Text2Emotion project, with a series of key enhancements aimed at optimizing its functionality for financial news analysis. We've refined the core algorithm to account for financial terms, integrated a more robust language corpus inclusive of additional words, added support for multi-word phrases, and incorporated an expanded emotional dialect covering a total of 30 emotions.
44

5-
![Updated Corpus Counts](/images/corpus.png)
5+
![Updated Corpus Counts](https://github.com/AI4Finance-Foundation/Fin-Emotion/raw/main/images/corpus.png)
66

77
While Text2Emotion's original algorithm worked with five primary emotions, our iteration employs the eight emotions outlined in Plutchik’s model. As a result, we needed to normalize the Text2Emotion embedded corpus. Moreover, we extended our emotional repertoire to cover an additional 22 mixed emotions and improved our utilization of sentiment to further emphasize our calculations.
88

99
## Corpus Datasets
1010

1111
Our refined algorithm leverages the combined power of three datasets. The first is Text2Emotion, which we have normalized to correspond with the NRC dataset. The second is the NRC Emotion Lexicon dataset itself, and the third addition is a glossary of domain-specific (financial) phrases. The integration of these resources results in a comprehensive corpus used to process financial news articles.
1212

13-
![Updated Data Cleaning Options](/images/data_cleaning.png)
13+
![Updated Data Cleaning Options](https://github.com/AI4Finance-Foundation/Fin-Emotion/raw/main/images/data_cleaning.png)
1414

1515
## Enhanced Algorithms
1616

1717
Our upgraded algorithm, "get_emotion", creates an emotion vector for news articles, with added functionality to deal with stopwords, lemmatization, contradiction expansions, and emotion vector normalization. It uses the combined corpus of Text2Emotion and NRC EmoLex, along with the financial phrase mappings.
1818

1919
The newly introduced algorithm, "get_mixed_emotion", can handle emotional mixing according to Plutchik's model, delivering the top emotion or a mixed emotion for a given article. The mixed emotion is calculated if the top two emotions comprise 50% of the emotional calculation, and the difference between these two is within 15%. This method allows for more nuanced and accurate emotional analysis.
2020

21-
![Analyzed News Articles](/images/news.png)
21+
![Analyzed News Articles](https://github.com/AI4Finance-Foundation/Fin-Emotion/raw/main/images/news.png)
2222

2323
## Usage
2424

2525
Here's how you can use these algorithms to detect emotions in financial texts:
26-
![Plutchik's Emotion Mixing](/images/emotion_mixing.png)
26+
![Plutchik's Emotion Mixing](https://github.com/AI4Finance-Foundation/Fin-Emotion/raw/main/images/emotion_mixing.png)
2727

2828

2929
### get_emotion function

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def run(self):
5353
packages=find_packages(),
5454
author="AliceNN-ucdenver",
5555
author_email="shawn.mccarthy@ucdenver.edu",
56-
url="https://github.com/AliceNN-ucdenver/Fin-Emotion",
56+
url="https://github.com/AI4Finance-Foundation/Fin-Emotion",
5757
license="MIT",
5858
install_requires=[
5959
'spacy',

0 commit comments

Comments
 (0)