Skip to content

Commit b4542fa

Browse files
authored
New doc updata 12 (#1459)
* modify transforner-rst * modify roformer tokenizer * delete modifications * modify chunk * delete changes * xfund * update * update * fix errors * add layoutlm * add t5 * update * updat4e
1 parent 7fab504 commit b4542fa

File tree

2 files changed

+110
-17
lines changed

2 files changed

+110
-17
lines changed

docs/clear_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def modify_doc_title_dir(abspath_rstfiles_dir):
2020
del_nodes = ['Submodules', 'Module contents', 'Subpackages']
2121
# 要删除的标题中的字符串
2222
del_str = [' module', ' package']
23-
#datasets需要的部分
23+
# datasets需要的部分
2424
dataset_list = ['datasets', 'dataset']
25-
#需要call方法
25+
# 需要call方法
2626
add_call_files = [
2727
'data.collate', 'data.iterator', 'data.sampler', 'data.tokenizer',
2828
'data.vocab', 'tokenizer\_utils'
2929
]
30-
#删除inheritance
30+
# 删除inheritance
3131
del_inheritance = [
3232
'crf', 'tcn', 'distributed', 'dataset', 'paraller', 'decoder', 'rdrop',
3333
'decoding', 'fast\_transformer', 'Adamoptimizer', 'attention\_utils',
@@ -54,7 +54,7 @@ def modify_doc_title_dir(abspath_rstfiles_dir):
5454
os.remove(path)
5555
print(path)
5656
continue
57-
#去除文档中空白页面,目前是data.iterator, embeddings.constant部分
57+
# 去除文档中空白页面,目前是data.iterator, embeddings.constant部分
5858
del_rst_flag = 0
5959
for pattern in del_rst:
6060
if pattern in first_line:
@@ -64,12 +64,12 @@ def modify_doc_title_dir(abspath_rstfiles_dir):
6464
break
6565
if del_rst_flag == 1:
6666
continue
67-
#是否加入call
67+
# 是否加入call
6868
add_call_files_flag = 0
6969
for i in add_call_files:
7070
if i in first_line:
7171
add_call_files_flag = 1
72-
#是否删除inheritance
72+
# 是否删除inheritance
7373
del_inheritance_flag = 0
7474
for j in del_inheritance:
7575
if j in first_line:
@@ -105,7 +105,7 @@ def modify_doc_title_dir(abspath_rstfiles_dir):
105105
if 'no-undoc-members' not in file_line:
106106
file_line = file_line.replace('undoc-members',
107107
'no-undoc-members')
108-
#去除datasets中多余内容
108+
# 去除datasets中多余内容
109109
if 'paddlenlp.datasets' in file_line:
110110
last_name = file_line.split('.')[-1]
111111
if last_name.strip() not in dataset_list:

0 commit comments

Comments
 (0)