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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pytorch_nlp-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01de66051e76ba334885bb92d45ebbf1d93d70a408bf2bf5ec80f8a0ac05e2d |
|
MD5 | c51aa532c29fb01087b3e04a8dff40fd |
|
BLAKE2b-256 | 1f320431c6ec90c3ae7d09cca13c2fffeb21dfd9afe008cb13d4ff45dc21cbe3 |
Hashes for pytorch_nlp-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eadd081db81d78c470093058e43472e9f0afb68b6e06b9c76130ac939d9830a |
|
MD5 | 58452c95f0df2e4f2378e2aa84def2d8 |
|
BLAKE2b-256 | e39069a6abf7d542bc61fe9d555c5315b39cf7cad8b67ff5b4359843d94c0f57 |