-
Notifications
You must be signed in to change notification settings - Fork 55
errata
Kosuke Yamada edited this page Dec 27, 2023
·
31 revisions
下記の誤りについて、お詫びして訂正いたします。
誤植を見つけられた方は、Issuesに新しいissueを作っていただくか、書籍の問い合わせフォームからお知らせください。
該当箇所 | 誤 | 正 | 対応 | 媒体 |
---|---|---|---|---|
5.5.3節 図5.16キャプション | 「灰色部わか保持されている」 | 「灰色部分が保持されている」 | 3刷 | 全て |
5.5.4節 | コードのセルに番号がない | コードのセルに番号が付く | 3刷 | 全て |
6.1節 | 「テキストうえで」 | 「テキスト上で」 | 3刷 | 全て |
6.2.3節: from seqeval.metrics import classification_report の前の行 7.4.1節: from transformers import BatchEncoding, PreTrainedTokenizer の前の行 |
from typing import Any |
3刷 | 全て | |
6.2.3節: convert_results_to_labels 関数 6.3.1節: preprocess_data 関数 6.3.2節: run_prediction 関数、extract_entities 関数 6.3.5節: find_error_results 関数、output_text_with_label 関数 6.3.6節: run_prediction_viterbi 関数 6.3.7節: run_prediction_crf 関数 7.4.1節: preprocess_data 関数 7.4.2節: run_generation 関数、postprocess_title 関数 |
関数の型ヒントのany
|
Any |
3刷 | 全て |
6.3.3節: if best_score < scores["f1-score"]: の次の行 6.3.7節: if best_score < scores["f1-score"]: の次の行 |
best_score = scores["f1-score"] を追加 |
|||
6.3.7節: BertWithCrfForTokenClassification クラスのforward メソッド |
attention_mask: torch.Tensor = None, token_type_ids: torch.Tensor = None, labels: torch.Tensor = None, |
attention_mask: torch.Tensor | None = None, token_type_ids: torch.Tensor | None = None, labels: torch.Tensor | None = None, |
3刷 | 全て |
7.3節 | n-gramに関する説明が繰り返されて表記されている | 繰り返された表記を削除 | 2刷 | ePubのみ |
7.3.2節: compute_bleu 関数 |
references: list[str] |
references: list[list[str]] |
3刷 | 全て |
7.5.2節 | 「トークンからはじまり、まず5%の確率で「私達」が選ばれ、次に90%の確率で「の」が選ばれています。」 | 「トークンからはじまり、まず10%の確率で「私達」が選ばれ、次に70%の確率で「の」が選ばれています。」 | 3刷 | 全て |
8.3.1節: SimCSEModel クラスのencode_texts メソッド |
# かつ訓練時である場合、... |
# かつ訓練時でない場合、... |
3刷 | 全て |
9.3.2節: _async_batch_run_chatgpt 関数、batch_run_chatgpt 関数 |
max_tokens: int , stop: str | list[str]
|
max_tokens: int | None , stop: str | list[str] | None
|
3刷 | 全て |
参考文献 | 日本語表記の名前の苗字と名前が逆に表記されている | 苗字と名前を正しい順序で表記する | 3刷 | 全て |