← all projects

2025 · ml · nlp

Financial Sentiment LSTM

A bidirectional LSTM, built from scratch, that classifies sentiment in ~24K Saudi Exchange corporate announcements.

context

Personal project

stack

Python, PyTorch, HuggingFace Transformers

what i built

  • Built and trained a bidirectional LSTM sentiment classifier from scratch on a ~24K-row corpus of Saudi Exchange corporate announcements, with custom tokenization, vocabulary construction, and PyTorch Dataset/DataLoader pipelines.
  • Optimized training with the Adam optimizer, cross-entropy loss, and dropout regularization to reduce overfitting on financial text.
  • Benchmarked test accuracy against a HuggingFace transformer-based sentiment baseline to validate the custom architecture on domain-specific financial NLP.