//- 💫 DOCS > USAGE > DEEP LEARNING > PYTORCH +infobox +infobox-logos(["pytorch", 100, 48, "http://pytorch.org"]) | #[strong PyTorch] is a dynamic neural network library, which can be much | easier to work with for NLP. Outside of Google, there's a general shift | among NLP researchers to both Pytorch and DyNet. spaCy is the front-end | of choice for PyTorch's #[code torch.text] extension. You can use PyTorch | to create spaCy pipeline components, to add annotations to the | #[code Doc] object. +code. from thinc.extra.wrappers import PyTorchWrapper model = PyTorchWrapper(YOUR_PYTORCH_MODEL) +github("spacy", "examples/training/train_pytorch_textcat.py")