Skip to content

Commit 9bfc75f

Browse files
committed
修改了 readthedocs 的依赖
1 parent f377237 commit 9bfc75f

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

docs/requirements.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
numpy>=1.14.2
2-
http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
3-
torchvision>=0.1.8
4-
sphinx-rtd-theme==0.4.1
5-
tensorboardX>=1.4
6-
tqdm>=4.28.1
7-
ipython>=6.4.0
8-
ipython-genutils>=0.2.0
1+
sphinx==3.2.1
2+
docutils==0.16
3+
sphinx-rtd-theme==0.5.0
4+
readthedocs-sphinx-search==0.1.0rc3

docs/source/tutorials/文本分类.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fastNLP提供了Trainer对象来组织训练过程,包括完成loss计算(所
291291
292292
293293
PS: 使用Bert进行文本分类
294-
~~~~~~~~~~~~~~~~~~~~
294+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
295295

296296
.. code-block:: python
297297
@@ -368,7 +368,7 @@ PS: 使用Bert进行文本分类
368368
369369
370370
PS: 基于词进行文本分类
371-
~~~~~~~~~~~~~~~~~~~~
371+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
372372

373373
由于汉字中没有显示的字与字的边界,一般需要通过分词器先将句子进行分词操作。
374374
下面的例子演示了如何不基于fastNLP已有的数据读取、预处理代码进行文本分类。

readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build:
99
python:
1010
version: 3.7
1111
install:
12+
- requirements: docs/requirements.txt
1213
- method: setuptools
1314
path: .
1415

0 commit comments

Comments
 (0)