Coder Social home page Coder Social logo

walidbosso / roberta_fine_tuning_sentiment_analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

Welcome to our RoBERTa Sentiment Analysis project! In this repository, we explore the world of Natural Language Processing (NLP) by fine-tuning a RoBERTa Transformer for sentiment analysis.

Home Page: https://github.com/walidbosso/Roberta_Fine_Tuning_Sentiment_Analysis/tree/main

License: MIT License

Jupyter Notebook 100.00%
bert classification fine-tuning huggingface machine machine-learning movies-reviews neural-network nlp-machine-learning roberta sentiment-analysis transformer numpy pandas pytorch roberta-model roberta-tokenizer

roberta_fine_tuning_sentiment_analysis's Introduction

Roberta_Fine_Tuning_Sentiment_Analysis

GitHub WidgetBox


RoBERTa Sentiment Analysis

Introduction

Welcome to our RoBERTa Sentiment Analysis project! In this repository, we explore the world of Natural Language Processing (NLP) by fine-tuning a RoBERTa Transformer for sentiment analysis.

Our Team

Our team, consisting of BOUSSOU Walid, HINDA Abdeljebar, ASTIGHFAR Ismail, KAIS Zakaria, and AYAD Mounir, excited to share our journey with you.

About RoBERTa

RoBERTa, short for "Robustly optimized BERT approach," is an advanced natural language processing model developed by Facebook AI Research. Built on the Transformer architecture, RoBERTa enhances BERT (Bidirectional Encoder Representations from Transformers) by addressing limitations and improving the pre-training procedure.

Project Structure

  • Application in Sentiment Analysis: Explore how we applied RoBERTa to sentiment analysis, specifically on a dataset of movie reviews.
  • Environment Setup: Learn about the libraries and tools we used, including PyTorch, Transformers, and the Hugging Face library.
  • Data Preparation: Details on loading and preparing the training data from a provided file.
  • Defining Variables: Key variables defined for training and validation.
  • Dataset and DataLoader: Creation of a custom dataset class and corresponding data loaders.
  • Neural Network Architecture: Introduction to the fine-tuning neural network based on RoBERTa.
  • Loss Function and Optimizer: Information on the loss function and optimizer used during training.
  • Training Function: Explanation of the training process and how the model learns from the data.
  • Validation Function: Insights into the validation stage to evaluate the model's performance on unseen data.

Prerequisites

  • Ensure you have Python installed (preferably Python 3.x).
  • Download the training data file train.tsv.zip from Kaggle and place it in the project directory.

Acknowledgments

We extend our gratitude to the open-source community, particularly the developers behind PyTorch, Transformers, and Hugging Face. Without their contributions, this project wouldn't be possible.

Feel free to explore the code, learn from our experiences, and adapt it for your own NLP projects! If you have any questions or suggestions, don't hesitate to reach out.

Happy coding! ๐Ÿš€

License

This project operates under the MIT License. Refer to the LICENSE file for detailed information.

Feedback and Contributions

Your feedback and contributions are invaluable! Feel free to open issues, submit pull requests, or connect for discussions.

  • If you'd like to contribute to the project, please follow these steps:

    1. Fork the repository.
    2. Create a new branch (git checkout -b feature/your-feature).
    3. Commit your changes (git commit -m 'Add some feature').
    4. Push to the branch (git push origin feature/your-feature).
    5. Open a pull request.
  • If you encounter any issues or have suggestions, please open an issue on the Issues page.

  • Contact me in LinkedIn for questions.

  • PRs Welcome Ask me anything


Thank you for exploring! ๐Ÿš€


ย 
ยฉ by Walid BOUSSOU, HINDA Abdeljebar, ASTIGHFAR Ismail, KAIS Zakaria, and AYAD Mounir ย ๐Ÿ‡ฒ๐Ÿ‡ฆ ๐Ÿ˜„
ย 
Made with Love


๐Ÿ‘ Thanks for the support

Stargazers

Stargazers repo roster for @walidbosso/Roberta_Fine_Tuning_Sentiment_Analysis

Forkers

Forkers repo roster for @walidbosso/Roberta_Fine_Tuning_Sentiment_Analysis

Contributors



GitHub last commit (by committer)

GitHub License

๐š‚๐š‘๐š˜๐š  ๐šœ๐š˜๐š–๐šŽ ๐Ÿ’™ ๐š‹๐šข ๐šœ๐š๐šŠ๐š›๐š›๐š’๐š—๐š โญ ๐š๐š‘๐šŽ ๐š›๐šŽ๐š™๐š˜๐šœ๐š’๐š๐š˜๐š›๐šข!


Back to top

roberta_fine_tuning_sentiment_analysis's People

Contributors

walidbosso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.