torchtextEasy Playground

PyTorch text processing: datasets, tokenization, vocabularies

Getting started with torchtextRun locally
Install
pip install torchtext
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: torchtext)

torchtext is a third-party package. PyTorch text processing: datasets, tokenization, vocabularies. Install with: pip install torchtext

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?