From 86536e0ed0486ab69ebcb8e7c2fff147bae37902 Mon Sep 17 00:00:00 2001 From: ChenXin Date: Wed, 22 May 2019 20:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .readthedocs.yml | 11 +++++++++++ README.md | 12 +++++++----- fastNLP/core/losses.py | 2 +- readthedocs.yml | 6 ------ 4 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 .readthedocs.yml delete mode 100644 readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 00000000..d9dd3f92 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,11 @@ +version: 2 + +sphinx: + configuration: docs/conf.py + +build: + image: latest + +python: + version: 3.6 + setup_py_install: true \ No newline at end of file diff --git a/README.md b/README.md index f4a8f2a6..77758cfd 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,13 @@ pip install fastNLP ``` +## 参考资源 + +- [文档](https://fastnlp.readthedocs.io/zh/latest/) +- [源码](https://github.com/fastnlp/fastNLP) + + + ## 内置组件 大部分用于的 NLP 任务神经网络都可以看做由编码(encoder)、聚合(aggregator)、解码(decoder)三种模块组成。 @@ -102,11 +109,6 @@ fastNLP的大致工作流程如上图所示,而项目结构如下: -## 参考资源 - -- [教程](https://github.com/fastnlp/fastNLP/tree/master/tutorials) -- [文档](https://fastnlp.readthedocs.io/en/latest/) -- [源码](https://github.com/fastnlp/fastNLP) diff --git a/fastNLP/core/losses.py b/fastNLP/core/losses.py index 35c14770..9dc02f3d 100644 --- a/fastNLP/core/losses.py +++ b/fastNLP/core/losses.py @@ -227,7 +227,7 @@ class CrossEntropyLoss(LossBase): Example:: - >>> loss = CrossEntropyLoss(pred='pred', target='label', padding_idx=0) + loss = CrossEntropyLoss(pred='pred', target='label', padding_idx=0) """ diff --git a/readthedocs.yml b/readthedocs.yml deleted file mode 100644 index 9b172987..00000000 --- a/readthedocs.yml +++ /dev/null @@ -1,6 +0,0 @@ -build: - image: latest - -python: - version: 3.6 - setup_py_install: true \ No newline at end of file