Skip to content

FilbertNg/StockPulse

Repository files navigation

πŸ“Š StockPulse

StockPulse is an intelligent stock sentiment analysis tool that extracts and analyzes financial sentiment from online articles using fine-tuned language models. It helps traders, researchers, and analysts understand how specific stock tickers are discussed in news content.


πŸš€ Features

  • πŸ” URL-based Sentiment Extraction
    Input a news article URL β€” StockPulse scrapes and processes the content automatically.

  • 🧠 NER-powered Ticker Matching
    Automatically detects relevant company names and maps them to their stock tickers.

  • πŸ’¬ Fine-Tuned Sentiment Classification
    Uses a BERT-based model to classify sentiment as Positive, Negative, or Neutral for each detected ticker.

  • πŸ“ˆ Confidence Score Output
    Each sentiment prediction is paired with its associated confidence level.


πŸ–₯️ Tech Stack

  • Python
  • Hugging Face Transformers
  • Torch / PyTorch
  • Newspaper (for web scraping)
  • Streamlit (for interactive demo)

πŸ§ͺ How It Works

  1. User provides a URL
  2. The article is scraped and cleaned
  3. Entities (company names) are extracted
  4. Mapped to stock tickers
  5. Sentiment analysis is performed per ticker
  6. Returns: Ticker, Sentiment, Confidence

πŸ“‚ Example Output

1. Ticker: AAPL  
   Sentiment: Positive  
   Confidence: 87.32%

2. Ticker: TSLA  
   Sentiment: Negative  
   Confidence: 91.44%

πŸ”— Resources


🌐 Live Demo

πŸ”— Streamlit Demo: https://stockpluse.streamlit.app/

Try the interactive demo to explore StockPulse in action!


πŸ“š Acknowledgements

  • Pretrained BERT models from Hugging Face πŸ€—
  • Yahoo Finance for ticker data reference
  • FinBERT and Financial Sentiment resources

πŸ“Ž TODO (Future Plans)

  • βœ… Improved NER mapping
  • Add multi-URL batch processing
  • Deploy on cloud with live news integration

About

πŸ“ˆ StockPulse: News-based stock sentiment analyzer using FinBERT.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors