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.4 kB

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/fastnlp-architecture.jpg)
  9. ## Requirements
  10. - numpy>=1.14.2
  11. - torch==0.4.0
  12. - torchvision>=0.1.8
  13. - tensorboardX
  14. ## Resources
  15. - [Documentation](https://fastnlp.readthedocs.io/en/latest/)
  16. - [Source Code](https://github.com/fastnlp/fastNLP)
  17. ## Installation
  18. Run the following commands to install fastNLP package.
  19. ```shell
  20. pip install fastNLP
  21. ```
  22. ## Project Structure
  23. <table>
  24. <tr>
  25. <td><b> fastNLP </b></td>
  26. <td> an open-source NLP library </td>
  27. </tr>
  28. <tr>
  29. <td><b> fastNLP.core </b></td>
  30. <td> trainer, tester, predictor </td>
  31. </tr>
  32. <tr>
  33. <td><b> fastNLP.loader </b></td>
  34. <td> all kinds of loaders/readers </td>
  35. </tr>
  36. <tr>
  37. <td><b> fastNLP.models </b></td>
  38. <td> a collection of NLP models </td>
  39. </tr>
  40. <tr>
  41. <td><b> fastNLP.modules </b></td>
  42. <td> a collection of PyTorch sub-models/components/wheels </td>
  43. </tr>
  44. <tr>
  45. <td><b> fastNLP.saver </b></td>
  46. <td> all kinds of savers/writers </td>
  47. </tr>
  48. <tr>
  49. <td><b> fastNLP.fastnlp </b></td>
  50. <td> a high-level interface for prediction </td>
  51. </tr>
  52. </table>