Skip to main content

Text utilities and datasets for PyTorch

Project description

# Pytorch-NLP

[![codecov](https://codecov.io/gh/MPetrochuk/PyTorch-NLP/branch/master/graph/badge.svg)](https://codecov.io/gh/MPetrochuk/PyTorch-NLP) [![Documentation Status](https://readthedocs.org/projects/pytorchnlp/badge/?version=latest)](http://pytorchnlp.readthedocs.io/en/latest/?badge=latest) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues) [![Build Status](https://travis-ci.org/MPetrochuk/PyTorch-NLP.svg?branch=master)](https://travis-ci.org/MPetrochuk/PyTorch-NLP) [![License](https://img.shields.io/pypi/l/Django.svg)](https://opensource.org/licenses/BSD-3-Clause)

# Test python3.6 -m “pytest” –cov-report=html:coverage –cov-report=term-missing –cov=lib -m “not slow” tests/

## Installation

Make sure you have Python 3.5+ and PyTorch 0.2.0 or newer. You can then install pytorch-nlp using pip:

pip install pytorch-nlp

### Optional requirements

If you want to use English tokenizer from SpaCy, you need to install SpaCy and download its English model:

pip install spacy python -m spacy download en_core_web_sm

Alternatively, you might want to use Moses tokenizer from NLTK. You have to install NLTK and download the data needed:

pip install nltk python -m nltk.downloader perluniprops nonbreaking_prefixes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytorch-nlp-0.0.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distributions

pytorch_nlp-0.0.1-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

pytorch_nlp-0.0.1-py2-none-any.whl (32.8 kB view details)

Uploaded Python 2

File details

Details for the file pytorch-nlp-0.0.1.tar.gz.

File metadata

  • Download URL: pytorch-nlp-0.0.1.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytorch-nlp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e11f3d80297242d01f438a0caaa53e53360f30c17e0db92f5fd32192e8366a7c
MD5 31178c1e18510b87473faafbd7a37342
BLAKE2b-256 897debb7f28eb51f9bef06047a02d624ab36f13f7c38e5dc9dbd41796ff6ae88

See more details on using hashes here.

File details

Details for the file pytorch_nlp-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytorch_nlp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d01de66051e76ba334885bb92d45ebbf1d93d70a408bf2bf5ec80f8a0ac05e2d
MD5 c51aa532c29fb01087b3e04a8dff40fd
BLAKE2b-256 1f320431c6ec90c3ae7d09cca13c2fffeb21dfd9afe008cb13d4ff45dc21cbe3

See more details on using hashes here.

File details

Details for the file pytorch_nlp-0.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pytorch_nlp-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 3eadd081db81d78c470093058e43472e9f0afb68b6e06b9c76130ac939d9830a
MD5 58452c95f0df2e4f2378e2aa84def2d8
BLAKE2b-256 e39069a6abf7d542bc61fe9d555c5315b39cf7cad8b67ff5b4359843d94c0f57

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page