Giter Site home page Giter Site logo

calebdel / nlp_transformers_exercises Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edwardjross/nlp_transformers_exercises

0.0 0.0 0.0 265 KB

Exercises from Natural Language Processing with Transformers, by Tunstall, von Werra and Wolf

Jupyter Notebook 100.00%

nlp_transformers_exercises's Introduction

Exercises inspired by Natural Language Processing with Transformers, by Tunstall, von Werra and Wolf. Also see their official notebook repository.

Contents:

Chapter 2

This is the fine-tuning section of Chapter 2 - Text Classification. I found the text notebook wouldn't run in Kaggle on a P100, so this is a cut down version that trains the fine-tuned classifier which will run in Kaggle.

To run in Kaggle:

  • Click the Open in Kaggle link: Kaggle
  • In the notebook settings select "Accelerator > GPU", as per screenshot below
  • Run the cells of the notebook

Selecting GPU Accelerator in Kaggle

This is a variation of classifying on the IMDB dataset from Learning Word Vectors for Sentiment Analysis, for which there are good benchmarks.

Chapter 4

Recipe Ingredient Entity Recognition

This is for recognising ingredients from recipes, using the data from A Named Entity Based Approach to Model Recipes, by Diwan, Batra, and Bagler.

Recipe NER with Stanford NLP Kaggle reproduces the results in the original paper using Stanford NLP, showing that seqeval gives the same results. This does not use transformers, nor require a GPU.

Recipe NER with XLM RobertaKaggle follows the NLP with Transformers text, training a XLM Roberta model but on this recipe dataset. It performs essentially similarly to the Stanford NLP CRF model, but makes it easy to see annotation issues and has some zero-shot cross-language NER.

nlp_transformers_exercises's People

Contributors

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