Skip to content

UCREL/Session_3_Semantic_Analysis

Repository files navigation

Session 3: USAS-based Sentiment and Emotion Analysis

This tutorial provides an introduction to using the UCREL Semantic Analysis System (USAS) for sentiment analysis. The focus is on the emotion semantic tags, specifically the Emotional Actions, States, and Processes General category. USAS contains 22 emotion categories. The semantic tags often contain one or more ‘pluses’ or ‘minuses’ to indicate a positive or negative sentiment, and this tutorial demonstrates how to leverage these signs for sentiment classification.

Repository Contents

This repository includes the following files:

Notebooks:

  • usas_emotion_analysis.ipynb: Contains a step-by-step method for tagging and extracting the sentiment (positive, negative, or neutral) of the given text at the sentence level using USAS.
  • dl_sentiment_classifier.ipynb: Implementation of five deep learning models (T5, Roberta, RobertaGo, DistilBert, and NRCLex) for sentiment analysis, followed by a comparative analysis of these models with the USAS sentiment classifier.

Google Colaboratory

To ensure you can make the most of the tutorial, it is crucial that you familiarize yourself with Google Colaboratory and Google Drive.

Our session will involve:

  • Running Code in Google Colaboratory: This is a cloud-based Jupyter notebook environment provided by Google, which allows you to write and execute Python code through your browser.
  • Setting File Paths in Google Colaboratory: You will need to know how to navigate and manage file paths within this environment.
  • Mounting Google Drive in Google Colaboratory: This will enable you to upload datasets from your Google Drive and save outputs directly to it.

To help you get started, we recommend reviewing the following Google Colab Tutorial.

Conclusion

By the end of this tutorial, you will have a comprehensive understanding of how to leverage the UCREL Semantic Analysis System (USAS) for sentiment analysis. You will learn how to effectively utilize the emotion semantic tags provided by USAS to classify sentiments as positive, negative, or neutral. Additionally, you will gain the skills needed to build your own sentiment classifiers, both using traditional methods and advanced deep learning techniques, thereby enabling you to perform detailed sentiment analysis on various text data.

Acknowledgments

  • European Union under Horizon Europe Work Programme 101057332 for their generous grant that made this research possible.
  • UCREL Semantic Analysis System (USAS) team for their extensive work on semantic analysis.
  • Contributors and maintainers of the Python libraries used in this tutorial.

Happy analyzing!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published