Browse Source

文档的配置文件

tags/v0.4.10
ChenXin 5 years ago
parent
commit
86536e0ed0
4 changed files with 19 additions and 12 deletions
  1. +11
    -0
      .readthedocs.yml
  2. +7
    -5
      README.md
  3. +1
    -1
      fastNLP/core/losses.py
  4. +0
    -6
      readthedocs.yml

+ 11
- 0
.readthedocs.yml View File

@@ -0,0 +1,11 @@
version: 2

sphinx:
configuration: docs/conf.py

build:
image: latest

python:
version: 3.6
setup_py_install: true

+ 7
- 5
README.md View File

@@ -33,6 +33,13 @@ pip install fastNLP
``` ```




## 参考资源

- [文档](https://fastnlp.readthedocs.io/zh/latest/)
- [源码](https://github.com/fastnlp/fastNLP)



## 内置组件 ## 内置组件


大部分用于的 NLP 任务神经网络都可以看做由编码(encoder)、聚合(aggregator)、解码(decoder)三种模块组成。 大部分用于的 NLP 任务神经网络都可以看做由编码(encoder)、聚合(aggregator)、解码(decoder)三种模块组成。
@@ -102,11 +109,6 @@ fastNLP的大致工作流程如上图所示,而项目结构如下:
</tr> </tr>
</table> </table>


## 参考资源

- [教程](https://github.com/fastnlp/fastNLP/tree/master/tutorials)
- [文档](https://fastnlp.readthedocs.io/en/latest/)
- [源码](https://github.com/fastnlp/fastNLP)







+ 1
- 1
fastNLP/core/losses.py View File

@@ -227,7 +227,7 @@ class CrossEntropyLoss(LossBase):


Example:: Example::


>>> loss = CrossEntropyLoss(pred='pred', target='label', padding_idx=0)
loss = CrossEntropyLoss(pred='pred', target='label', padding_idx=0)
""" """


+ 0
- 6
readthedocs.yml View File

@@ -1,6 +0,0 @@
build:
image: latest

python:
version: 3.6
setup_py_install: true

Loading…
Cancel
Save