• Stars
    star
    187
  • Rank 206,464 (Top 5 %)
  • Language
    Jupyter Notebook
  • Created almost 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of tutorials for torchtext

Practical Torchtext

A set of tutorials for using torchtext effectively. Current tutorials:

  • Text classification
  • Word-level language modeling

Notice : I am in the progress of migrating the contents of this repository to my new repo on NLP using PyTorch. My new repo will eventually contain the most updated version of all the tutorials here.

Purpose

The documentation of torchtext is still relatively incomplete, and using torchtext effectively currently requires reading through a fairly large amount of code. This set of tutorials aims to provide working examples of uses of torchtext to enable more users to make full use of this fanstastic library.

Usage

The current pip release of torchtext has bugs that will make some of the code run incorrectly. These bugs are currently only fixed on the master branch of the github repository of torchtext. Therefore, I recommend you install torchtext from the github repository with the following command:

$ pip install --upgrade git+https://github.com/pytorch/text