Skip to content

reorganized files and implemented VADER and BilSTM, both of which need more work#1

Open
Vsyengo wants to merge 3 commits intomainfrom
vee-branch
Open

reorganized files and implemented VADER and BilSTM, both of which need more work#1
Vsyengo wants to merge 3 commits intomainfrom
vee-branch

Conversation

@Vsyengo
Copy link
Copy Markdown
Collaborator

@Vsyengo Vsyengo commented May 1, 2025

No description provided.

@nedcut nedcut requested a review from Copilot May 2, 2025 02:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the project structure and adds implementations for VADER and a BiLSTM sentiment analysis model, along with updates to the BERT components for climate analysis.

  • Added a new VADER-based sentiment analysis module.
  • Introduced BiLSTM modules including dataset, training, evaluation, and model definition with GloVe embedding integration.
  • Updated BERT model import paths to reflect the new repository structure.

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
models/VADER/vader.py Introduced a new VADER sentiment analysis implementation.
models/BilSTM/utils.py Added utility function for loading GloVe embeddings.
models/BilSTM/train.py Added training loop for BiLSTM, but with an argument mismatch issue.
models/BilSTM/model.py Defined the BiLSTM model using frozen pre-trained embeddings.
models/BilSTM/main.py Integrated data loading, training, and evaluation for BiLSTM.
models/BilSTM/evaluate.py Provided model evaluation, confusion matrix plotting, and metrics.
models/BilSTM/dataset.py Defined a custom dataset for tweet sentiment data.
models/BERT/* Updated import paths and maintained utility functions for BERT.


# Train loop
for epoch in range(NUM_EPOCHS):
loss = train_model(model, train_loader, optimizer, criterion, device)
Copy link

Copilot AI May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call to train_model passes a 'criterion' argument, but the definition in models/BilSTM/train.py does not accept it. Update the train_model function to accept the criterion parameter or remove the extra argument from the call to ensure consistent API usage.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants