Browse Source

Merge pull request #4 from fastnlp/master

update
tags/v0.1.0
lyhuang18 GitHub 6 years ago
parent
commit
1ebb514aa3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 12 additions and 9 deletions
  1. +1
    -0
      docs/source/conf.py
  2. +6
    -0
      docs/source/fastNLP.saver.rst
  3. BIN
      docs/source/figures/procedures.PNG
  4. BIN
      docs/source/figures/procedures_and_sequence_labeling.png
  5. BIN
      docs/source/figures/sequence_labeling.PNG
  6. +5
    -3
      docs/source/index.rst
  7. +0
    -0
      examples/readme_example.py
  8. +0
    -0
      test/core/test_metrics.py
  9. +0
    -0
      test/core/test_tester.py
  10. +0
    -0
      test/loader/test_loader2.py
  11. +0
    -0
      test/model/seq_labeling.py
  12. +0
    -0
      test/model/test_charlm.py
  13. +0
    -0
      test/model/test_cws.py
  14. +0
    -0
      test/model/text_classify.py
  15. +0
    -6
      test/test_trainer.py

+ 1
- 0
docs/source/conf.py View File

@@ -43,6 +43,7 @@ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'sphinx.ext.autosummary', 'sphinx.ext.autosummary',
'sphinx.ext.mathjax',


] ]




+ 6
- 0
docs/source/fastNLP.saver.rst View File

@@ -1,6 +1,12 @@
fastNLP.saver fastNLP.saver
============== ==============


fastNLP.saver.config\_saver
----------------------------

.. automodule:: fastNLP.saver.config_saver
:members:

fastNLP.saver.logger fastNLP.saver.logger
--------------------- ---------------------




BIN
docs/source/figures/procedures.PNG View File

Before After
Width: 1150  |  Height: 161  |  Size: 14 kB

BIN
docs/source/figures/procedures_and_sequence_labeling.png View File

Before After
Width: 1079  |  Height: 558  |  Size: 51 kB

BIN
docs/source/figures/sequence_labeling.PNG View File

Before After
Width: 762  |  Height: 541  |  Size: 30 kB

+ 5
- 3
docs/source/index.rst View File

@@ -12,13 +12,15 @@ fastNLP是一个基于PyTorch的模块化自然语言处理系统,用于快速
而每个类别包含不同的实现模块。 而每个类别包含不同的实现模块。


大多数当前的NLP模型可以构建在这些模块上,这极大地简化了开发NLP模型的过程。 大多数当前的NLP模型可以构建在这些模块上,这极大地简化了开发NLP模型的过程。
fastNLP的架构如下左图所示:
fastNLP的架构如图所示:


.. image:: figures/procedures_and_sequence_labeling.png
.. image:: figures/procedures.PNG


在constructing model部分,以序列标注(上右图)和文本分类(下图)为例进行说明:
在constructing model部分,以序列标注和文本分类为例进行说明:


.. image:: figures/text_classification.png .. image:: figures/text_classification.png
.. image:: figures/sequence_labeling.PNG
:width: 400


* encoder module:将输入编码为一些抽象表示,输入的是单词序列,输出向量序列。 * encoder module:将输入编码为一些抽象表示,输入的是单词序列,输出向量序列。
* interaction module:使表示中的信息相互交互,输入的是向量序列,输出的也是向量序列。 * interaction module:使表示中的信息相互交互,输入的是向量序列,输出的也是向量序列。


test/readme_example.py → examples/readme_example.py View File


test/test_metrics.py → test/core/test_metrics.py View File


test/test_tester.py → test/core/test_tester.py View File


test/test_loader.py → test/loader/test_loader2.py View File


test/seq_labeling.py → test/model/seq_labeling.py View File


test/test_charlm.py → test/model/test_charlm.py View File


test/test_cws.py → test/model/test_cws.py View File


test/text_classify.py → test/model/text_classify.py View File


+ 0
- 6
test/test_trainer.py View File

@@ -1,6 +0,0 @@
def test_trainer():
pass


if __name__ == "__main__":
test_trainer()

Loading…
Cancel
Save