Errata

Natural Language Processing with Transformers

Errata for Natural Language Processing with Transformers

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 1
1

There is a mistake in the discussion of BLEU and ROUGE scores in Chapter 6: Summarization. First: [...] which means that when we compare the two texts we count the number of words in the generation that occur in the reference and divide it by the length of the reference. Should be: [...] which means that when we compare the two texts we count the number of words in the generation that occur in the reference and divide it by the length of the generation. Then in the two equations for p_n the apostrophe with snt should be in the numerator of the fraction and not in the denominator. Finally, in the first paragraph of the ROUGE section the text: [...] occurrence of reference n-grams in the generated text in the numerator: Should be replaced with: [...] occurrence of reference n-grams in the generated text in the denominator:

Leandro von Werra
 
Feb 05, 2022  May 27, 2022
Page 48
1st code block

(Fist Release) To load the best model at the end of training (as mentioned in first paragraph), `save_strategy="epoch"` and `load_best_model_at_end=True` is added to `TrainingArguments` constructor. Thanks.

Haesun Park  Jun 18, 2022 
Printed, Safari Books Online
Page 102
Final code block for the tag_text() function

This line of code in the function outputs = model(inputs)[0] should be replaced with outputs = model(input_ids)[0] Reference PR on the GitHub repo: https://github.com/nlp-with-transformers/notebooks/pull/34/files

Lewis Tunstall
Lewis Tunstall
 
Mar 23, 2022  May 27, 2022