Skip to content

Commit 24c5087

Browse files
committed
merge
2 parents e78fc82 + 9bfc75f commit 24c5087

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ build:
77
image: latest
88

99
python:
10-
version: 3.6
10+
version: 3.7
1111
install:
12+
- requirements: docs/requirements.txt
1213
- method: setuptools
1314
path: .
1415

1516
formats:
16-
- htmlzip
17+
- htmlzip

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
long_description_content_type='text/markdown',
2424
license='Apache License',
2525
author='Fudan FastNLP Team',
26-
python_requires='>=3.6',
26+
python_requires='>=3.7',
2727
packages=pkgs,
2828
install_requires=reqs.strip().split('\n'),
2929
)

0 commit comments

Comments
 (0)