Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Tokenizer.ipynb of Chapter 9 in the second edition #12

Open
ElongHu opened this issue Oct 18, 2024 · 1 comment
Open

About Tokenizer.ipynb of Chapter 9 in the second edition #12

ElongHu opened this issue Oct 18, 2024 · 1 comment

Comments

@ElongHu
Copy link

ElongHu commented Oct 18, 2024

In the Tokenizer.ipynb of Chapter 9 in the second edition, all the similarity calculations are inconsistent with those in the book, and in some cases, the conclusions in the similarity representation are completely opposite.

@Denis2054
Copy link
Owner

Thank you for this feedback. Here is the explanation and the solution:

  1. Explanation
    a) the libraries, modules, and packages continually change, which might impact the code
    b) AI NLP algorithms are stochastic, meaning that there is randomness in the outputs

  2. Solution:
    Run the more recent version which is Tokenizers.ipynb in the Transformers for NLP and CV, 3rd Edition repository:
    https://colab.research.google.com/github/Denis2054/Transformers-for-NLP-and-Computer-Vision-3rd-Edition/blob/main/Chapter10/Tokenizers.ipynb

It is open-source, thus free, and also it is self-contained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants