Russian Sentiment Analysis Bot

Real-Time Applied NLP for Monitoring Russian Media Sentiment on the Ukraine Conflict

Year: 2025

Technologies: Python, Flask, Hugging Face Transformers, Bootstrap 5, JavaScript, NewsAPI

Russian Sentiment Analysis Bot Screenshot

Overview

The Russian Sentiment Analysis Bot is a full-stack Flask web application that analyses sentiment in Russian-language text using artificial intelligence. It combines user-inputted text analysis with live Russian news sentiment scoring, using Hugging Face’s RuBERT model (sismetanin/rubert-ru-sentiment-rusentiment).

Key Features

Technical Details

The backend is written in Python (Flask), with a RESTful API that connects to the RuBERT sentiment model hosted on Hugging Face for text inference. The frontend uses Bootstrap 5 and JavaScript for an interactive experience, with colour-coded feedback and live news integration via NewsAPI. Results are returned as structured JSON with polarity and confidence scores.

Rationale & Purpose

This project demonstrates how multilingual NLP and machine learning can be applied in open-source intelligence to assess sentiment in foreign-language media environments. It was developed as part of an exploration into Russian-language data analysis and media monitoring relevant to UK intelligence and defence applications.

Links