File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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已有的数据读取、预处理代码进行文本分类。
Original file line number Diff line number Diff line change 77 image : latest
88
99python :
10- version : 3.6
10+ version : 3.7
1111 install :
12+ - requirements : docs/requirements.txt
1213 - method : setuptools
1314 path : .
1415
1516formats :
16- - htmlzip
17+ - htmlzip
Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments