pytorch-nlp-tutorial-nyc2017
pytorch-nlp-tutorial-nyc2017 copied to clipboard
01_Trump_Tweet_LM mods
- Needed to add "import json" to perform save in TweetLanguageModel and TrumpTweetVectorizer
- Needed to call "model.cuda()" to perform training
- " ".join(greedy_sample_from(model, vectorizer, temperature=0.9, n_length=30, use_cuda=False)[1:]) needs to be moved below creation of "model" object.