Giter VIP home page Giter VIP logo

Comments (4)

bentrevett avatar bentrevett commented on May 23, 2024

I'm working on this currently. Planning to completely re-do all of the tutorials -- change the order and models used -- now that the new API is stable.

from pytorch-sentiment-analysis.

richardxing avatar richardxing commented on May 23, 2024

Thanks a lot! Looking forward to it!

from pytorch-sentiment-analysis.

bentrevett avatar bentrevett commented on May 23, 2024

Tutorials with the new API are now available, see:

Only the code is available for now, need to add the text/images. Major changes are:

  • using new torchtext API
  • using HuggingFace Datasets to load data. I decided to use this instead of torchtext to load the data as the HuggingFace team are constantly adding new datasets pretty rapidly, whereas torchtext seems to be hesitant to add more.
  • using tqdm instead of a custom timing function
  • plotting the loss/acc per batch instead of just printing loss/acc per epoch
  • order/models changed from rnn -> lstm -> nbow -> cnn -> transformer, to: nbow -> lstm -> cnn -> transformer. Decided it was better to start with the nbow model as it's the simplest, and nobody uses plain RNNs anymore and it was weird to start the tutorial with a model that didn't work.
  • use FastText embeddings instead of GloVe. API is the same but I see more people use FastText so decided to switch.

from pytorch-sentiment-analysis.

thulieblack avatar thulieblack commented on May 23, 2024

Hie, is there a way to import custom data on the new torchtext API, as the data.TabularDatasets.splits is now retired.
Thanks.

from pytorch-sentiment-analysis.

Related Issues (20)

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.