Code Monkey home page Code Monkey logo

transformer_models's Introduction

Transformer models trained on Reddit "STUDIO"-dataset

In this project, I tried out several machine learning and deep learning approaches in order to find the best solution for NER task that was based on a new label, that is, “STUDIO”. Posts and comments of “movies” Subreddit were used as Dataset. The imbalanced data distribution was presented, and a training, dev and test datasets were built. Two machine learning models including Random Forest and Support Vector Machine were used based on numerical features from tf-idf vectorizer. Three transformer-based models including BERT, DistilBERT and RoBERTa were also trained and tested on the textual data. Comparisons between models and hyperparameters were done, and 92,4% F1 score for the machine learning model, 94,4% F1 score for the transformer-based model and 92,5% F1 score for the spaCy’s toc2vec model were achieved on the testing set. Transformer-based models were summarized and experimented. Cased, large RoBERTa model and large BERT cased were found giving better performances than the uncased, base ones. DistilBERT has a faster computation speed with a bit lower metrics, while RoBERTa gives higher evaluation metrics with more computational resources required.

transformer_models's People

Contributors

stewieboomhauer 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.