pytorch-seq2seq icon indicating copy to clipboard operation
pytorch-seq2seq copied to clipboard

how to use BPTTIterator for Language Modeling

Open StephennFernandes opened this issue 4 years ago • 0 comments

Hey Ben this isn't an issue with your code. It's just a simple beginner in PyTorch NLP asking you out on how to use the nightly torchtext .

I have a huge raw corpus.txt file, and I want to implement a simple LSTM based language model using lstm.

As the new torchtext nightly is quite intimidating and I've found literally no tutorials on building a simple language model in pytorch. it would be really great if you could make a repo or the least of all show me how to use the BPTTIterator class to build a LM using torchtext.

you efforts are highly appreciated. Thanks

StephennFernandes avatar Mar 19 '21 11:03 StephennFernandes