Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Sentiment Analysis Project

This project builds models to classify consumer opinions into negative, neutral, or positive sentiment. The following models are implemented:

  • DistilBERT (fine-tuned transformer)
  • Logistic Regression (TF-IDF features)
  • SVM (LinearSVC) (TF-IDF features)

This code is part of a final project for the TextMining course, therefore comments and descriptions in the file are in polish language.

Contents

  1. Data Preparation

    • Text preprocessing: cleaning, tokenization, stopword removal, lemmatization.
    • Class balancing using oversampling.
  2. Model Training

    • Logistic Regression and SVM trained on TF-IDF vectors.
    • DistilBERT fine-tuned on the processed data.
  3. Evaluation

    • F1-score, precision, recall, and accuracy are calculated.
    • Confusion matrices and comparisons of model performance are included.

About

NLP, text mining sentiment analysis on consumer opinions, using BERT and 2 ML models

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages