delip / PyTorchNLPBook

Code and data accompanying Natural Language Processing with PyTorch published by O'Reilly Media https://amzn.to/3JUgR2L
Apache License 2.0
1.96k stars 799 forks source link

Typo in 3_5_Classifying_Yelp_Review_Sentiment.py #32

Open lishichengyan opened 3 years ago

lishichengyan commented 3 years ago

Hi, thanks for providing the code. I found a small typo in 3_5_Classifying_Yelp_Review_Sentiment.py. In the ReviewVectorizer class, the comment of vectorize should be one-hot rather than one-hit.

Screen Shot 2021-03-26 at 11 03 08 PM