Sentiment Analysis of Financial News in Python - 3 Ways using Dictionary, FinBert and LLMs

Published: 12 April 2024
on channel: Vincent Codes Finance
2,069
52

In this video, we'll see 3 different methods to perform sentiment analysis of financial news in python:
A dictionary.-based approach using the Loughran and McDonald dictionary
FinBert, a Bert model fine-tuned for sentiment analysis of financial text using the transformers library from Hugging Face
Using large langage models with the langchain library.

The code is available here: https://github.com/Vincent-Codes-Fina...
A written version of the tutorial is available here: https://vincent.codes.finance/posts/s...

👍 Please like if you found this video helpful, and subscribe to stay updated with my latest tutorials. 🔔

❤️ You can support this channel by buying me a ☕: https://buymeacoffee.com/codesfinance

🔖 Chapters:
00:00 Intro
00:36 Text Data
02:51 Dictionary-Based Approach
10:40 FinBert
17:24 Large Language Models
29:40 End results

🍺 Homebrew installation commands:
brew install ollama

⚙ Other commands
ollama pull mixtral
ollama pull llama2

🔗 Video links:
Loughran-McDonald Dictionary: https://sraf.nd.edu/loughranmcdonald-...
FinBert: https://huggingface.co/ProsusAI/finbert
Bert: https://huggingface.co/docs/transform...
Transformers: https://huggingface.co/docs/transform...
Ollama: https://ollama.com/
LangChain: https://python.langchain.com/docs/get...
NLTK: https://www.nltk.org/


📝 Papers:
FinBert: https://arxiv.org/abs/1908.10063
Bert: https://arxiv.org/abs/1810.04805
Loughran and McDonald: https://papers.ssrn.com/sol3/papers.c...


🐍 More Vincent Codes Finance:
✍🏻 Blog: https://vincent.codes.finance
🐦 X:   / codesfinance  
🧵 Threads: https://www.threads.net/@codesfinance
😺 GitHub: https://github.com/Vincent-Codes-Finance
📘 Facebook:   / 61559283113665  
👨‍💼 LinkedIn:   / vincent-codes-finance  
🎓 Academic website: https://www.vincentgregoire.com/

#sentimentanalysis #huggingface #langchain #nlp #naturallanguageprocessing #finbert #transformers #llm #largelanguagemodels #ollama #python #javascript #programming #code #gpt #opensource #opensourceai #llama2 #mistral #bigdata #research #researchtips #vscode #professor #datascience #dataanalytics #dataanalysis #finance #financialnews #financialanalysis


Watch video Sentiment Analysis of Financial News in Python - 3 Ways using Dictionary, FinBert and LLMs online without registration, duration hours minute second in high quality. This video was added by user Vincent Codes Finance 12 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,069 once and liked it 52 people.