Skip to content

Commit

Permalink
修改了 readthedocs 的依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
WillQvQ committed Oct 29, 2021
1 parent f377237 commit 9bfc75f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 4 additions & 8 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
numpy>=1.14.2
http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
torchvision>=0.1.8
sphinx-rtd-theme==0.4.1
tensorboardX>=1.4
tqdm>=4.28.1
ipython>=6.4.0
ipython-genutils>=0.2.0
sphinx==3.2.1
docutils==0.16
sphinx-rtd-theme==0.5.0
readthedocs-sphinx-search==0.1.0rc3
4 changes: 2 additions & 2 deletions docs/source/tutorials/文本分类.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ fastNLP提供了Trainer对象来组织训练过程,包括完成loss计算(所
PS: 使用Bert进行文本分类
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python
Expand Down Expand Up @@ -368,7 +368,7 @@ PS: 使用Bert进行文本分类
PS: 基于词进行文本分类
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

由于汉字中没有显示的字与字的边界,一般需要通过分词器先将句子进行分词操作。
下面的例子演示了如何不基于fastNLP已有的数据读取、预处理代码进行文本分类。
Expand Down
1 change: 1 addition & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build:
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: setuptools
path: .

Expand Down

0 comments on commit 9bfc75f

Please sign in to comment.