pytorch-nlp-tutorial-nyc2017 icon indicating copy to clipboard operation
pytorch-nlp-tutorial-nyc2017 copied to clipboard

01_Trump_Tweet_LM mods

Open csgwon opened this issue 7 years ago • 0 comments

  • 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.

csgwon avatar Jun 27 '17 18:06 csgwon