GithubHelp home page GithubHelp logo

Comments (7)

rasbt avatar rasbt commented on June 12, 2024

Hi there,

I think that's because there were a few changes in torchtext. In order to reproduce the results in the book, you can try

pip install torchtext==0.10.0

to install the version I used in the book from https://pypi.org/project/torchtext/0.10.0/

from machine-learning-book.

sabre-code avatar sabre-code commented on June 12, 2024

Hello I just tried installing the said version but torch text 0.10.0 seems unavailable.

from machine-learning-book.

rasbt avatar rasbt commented on June 12, 2024

I can confirm. It jumps from 0.6 to 0.12. They must have removed this version. This is so weird. It's still available online but it seems that there is no source file anymore: https://pypi.org/project/torchtext/0.10.0/#files

Screenshot 2023-07-15 at 11 33 55 AM

from machine-learning-book.

sabre-code avatar sabre-code commented on June 12, 2024

I guess changing the code to suit the new torchtext is only option. Will try that.

from machine-learning-book.

rasbt avatar rasbt commented on June 12, 2024

Yeah, that might be the unfortunate consequence of that. Sorry about that! I am a bit hesitant to update the original notebook since it would then be different from the book text, which could be confusing for some. But if you get it to work with a newer version, I'd appreciate a PR. We could include this as an alternative notebook here on GitHub and then link it from the original one.

from machine-learning-book.

sabre-code avatar sabre-code commented on June 12, 2024

Surely I will work on it.

from machine-learning-book.

sabre-code avatar sabre-code commented on June 12, 2024

Hello, I have created PR please check.

from machine-learning-book.

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.