PyTorchNLPBook
PyTorchNLPBook copied to clipboard
Code and data accompanying Natural Language Processing with PyTorch published by O'Reilly Media https://amzn.to/3JUgR2L
Got This Below error in Notebook 5_2_munging_frankenstein.ipynb Please hep on this LookupError Traceback (most recent call last) in () ----> 1 tokenizer = nltk.data.load('tokenizers/punkt/english.pickle') 2 with open(args.raw_dataset_txt) as fp: 3...
file glove.6B.100d.txt from kaggle [[link]](https://www.kaggle.com/danielwillgeorge/glove6b100dtxt?select=glove.6B.100d.txt) the appropriate `from_embeddings_file` method: ``` def from_embeddings_file(cls, embedding_file): """Instantiate from pre-trained vector file. Vector file should be of the format: word0 x0_0 x0_1 x0_2 x0_3...
The early_stopping_best_val never gets updated so the loss is ALWAYS smaller and early stopping never happens this line of code is missing in the if-else statement in update_train_stage function: train_state['early_stopping_best_val']...
cannot access yelp training data in google drive
Hello, I rewrite the code to subset the full dataset and split the dataset. I think the logic in my code is easier to understand. I hope it is helpful.
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.
Hello I can't undestand, how to use model? It had learnt well, but how I can translate my own phrase? There is possible to translate only from dataset. I'ts to...
Hi everyone, Chapter 3 does not load Yelp data due to a typo on the last line of the dataset: Line Review 73357: "1","Capital City Transfer han Using nrows argument...
All the previous codes from Chapter 1 seem to be running fine but just this particular part of code seems to be causing the issue - lr = 0.01 input_dim...