You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.5 kB

7 years ago
7 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # fastNLP
  2. [![Build Status](https://travis-ci.org/fastnlp/fastNLP.svg?branch=master)](https://travis-ci.org/fastnlp/fastNLP)
  3. [![codecov](https://codecov.io/gh/fastnlp/fastNLP/branch/master/graph/badge.svg)](https://codecov.io/gh/fastnlp/fastNLP)
  4. [![PyPI version](https://badge.fury.io/py/fastNLP.svg)](https://badge.fury.io/py/fastNLP)
  5. ![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)
  6. [![Documentation Status](https://readthedocs.org/projects/fastnlp/badge/?version=latest)](http://fastnlp.readthedocs.io/?badge=latest)
  7. 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:
  8. ![](https://github.com/fastnlp/fastNLP/raw/master/docs/source/figures/procedures.PNG)
  9. ![](https://github.com/fastnlp/fastNLP/raw/master/docs/source/figures/text_classification.png)
  10. ## Requirements
  11. - numpy>=1.14.2
  12. - torch==0.4.0
  13. - torchvision>=0.1.8
  14. - tensorboardX
  15. ## Resources
  16. - [Documentation](https://fastnlp.readthedocs.io/en/latest/)
  17. - [Source Code](https://github.com/fastnlp/fastNLP)
  18. ## Installation
  19. Run the following commands to install fastNLP package.
  20. ```shell
  21. pip install fastNLP
  22. ```
  23. ## Project Structure
  24. <table>
  25. <tr>
  26. <td><b> fastNLP </b></td>
  27. <td> an open-source NLP library </td>
  28. </tr>
  29. <tr>
  30. <td><b> fastNLP.core </b></td>
  31. <td> trainer, tester, predictor </td>
  32. </tr>
  33. <tr>
  34. <td><b> fastNLP.loader </b></td>
  35. <td> all kinds of loaders/readers </td>
  36. </tr>
  37. <tr>
  38. <td><b> fastNLP.models </b></td>
  39. <td> a collection of NLP models </td>
  40. </tr>
  41. <tr>
  42. <td><b> fastNLP.modules </b></td>
  43. <td> a collection of PyTorch sub-models/components/wheels </td>
  44. </tr>
  45. <tr>
  46. <td><b> fastNLP.saver </b></td>
  47. <td> all kinds of savers/writers </td>
  48. </tr>
  49. <tr>
  50. <td><b> fastNLP.fastnlp </b></td>
  51. <td> a high-level interface for prediction </td>
  52. </tr>
  53. </table>