Migrated repository
Go to file
2018-10-27 19:42:46 +08:00
.github add logging in Trainer & Tester 2018-08-17 11:16:13 +08:00
docs update docs 2018-10-05 05:34:26 +08:00
examples Merge Preprocessor and DataSet 2018-09-28 21:35:17 +08:00
fastNLP fix a bug 2018-10-26 18:53:52 +08:00
reproduction update dataset & loader 2018-10-17 09:59:56 +08:00
test clean some codes and fix some bugs 2018-10-26 18:16:22 +08:00
.travis.yml - add progress bar for data set loading 2018-10-01 20:33:29 +08:00
LICENSE add LICENSE, setup.py & requirements.txt 2018-05-25 18:32:02 +08:00
README.md Update README.md 2018-10-20 14:27:05 +08:00
requirements.txt add tensorboardX for loss visualization 2018-09-03 19:37:44 +08:00
setup.py Update setup.py 2018-10-01 21:40:34 +08:00

fastNLP

Build Status codecov PyPI version Hex.pm Documentation Status

fastNLP is a modular Natural Language Processing system based on PyTorch, for fast development of NLP tools. It divides the NLP model based on deep learning into different modules. These modules fall into 4 categories: encoder, interaction, aggregation and decoder, while each category contains different implemented modules. Encoder modules encode the input into some abstract representation, interaction modules make the information in the representation interact with each other, aggregation modules aggregate and reduce information, and decoder modules decode the representation into the output. Most current NLP models could be built on these modules, which vastly simplifies the process of developing NLP models. The architecture of fastNLP is as the figure below:

Requirements

  • numpy>=1.14.2
  • torch==0.4.0
  • torchvision>=0.1.8
  • tensorboardX

Resources

Installation

Run the following commands to install fastNLP package.

pip install fastNLP

Project Structure

fastNLP an open-source NLP library
fastNLP.core trainer, tester, predictor
fastNLP.loader all kinds of loaders/readers
fastNLP.models a collection of NLP models
fastNLP.modules a collection of PyTorch sub-models/components/wheels
fastNLP.saver all kinds of savers/writers
fastNLP.fastnlp a high-level interface for prediction