Closed tetsuomiyoshi closed 6 months ago
p158のIn[27]:ですが、最後の箇所で以下の記述が抜けてないでしょうか? if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model = model
同様に、p172のIn[40]:の最後の箇所ですが、 if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model_crf = model_crf
本の読者です、私も同感です。 電子書籍だとページ数が画面サイズによって変わるので、補足です。 6.3.3章のIn[27] と6.3.7章のIn[40] にて上記のコードが抜けていると思います。
コードの抜けに関するご指摘ありがとうございます。 github上のコードを修正し、今後出版される書籍で対応いたします。
p158のIn[27]:ですが、最後の箇所で以下の記述が抜けてないでしょうか? if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model = model
同様に、p172のIn[40]:の最後の箇所ですが、 if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model_crf = model_crf