Skip to content

Commit d1578d8

Browse files
committed
[CodeStyle][Typos][S-[10-14]] Fix typo
1 parent 1f43849 commit d1578d8

File tree

9 files changed

+19
-24
lines changed

9 files changed

+19
-24
lines changed

_typos.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,13 @@ datas = "datas"
2828
feeded = "feeded"
2929

3030
# These words need to be fixed
31-
schedual = "schedual"
32-
secenarios = "secenarios"
33-
sematic = "sematic"
34-
seperator = "seperator"
3531
setted = "setted"
3632
shoule = "shoule"
3733
similary = "similary"
3834
simplier = "simplier"
3935
skiped = "skiped"
4036
softwares = "softwares"
4137
specail = "specail"
42-
sperated = "sperated"
4338
splited = "splited"
4439
splitted = "splitted"
4540
stirng = "stirng"

ci_scripts/check_api_docs_en.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"py_files",
1515
str,
1616
None,
17-
"api python files, sperated by space",
17+
"api python files, separated by space",
1818
],
1919
[
2020
"--api_info_file",

ci_scripts/check_api_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def add_path(path):
3333

3434
arguments = [
3535
# flags, dest, type, default, help
36-
["--rst-files", "rst_files", str, None, "api rst files, sperated by space"],
36+
["--rst-files", "rst_files", str, None, "api rst files, separated by space"],
3737
["--api-info", "api_info_file", str, None, "api_info_all.json filename"],
3838
]
3939

docs/design/ir/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Usually, the `gap` is bridged by
1515
* Has a simple way to verify and debug each transformation.
1616

1717
* Flexible to add, remove or customize transformations to fit
18-
the requirements of various algorithms (models) and hardware secenarios.
18+
the requirements of various algorithms (models) and hardware scenarios.
1919

2020
Some other events also push us to a better unified pattern.
2121

docs/design/motivation/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ paddle.train(topology, parameters, reader=read_ranking_model_data)
7171

7272
# Inference using fA (or fB or fC, as they share their parameters).
7373
[testA, testB, testQ] = read_ranking_model_data()
74-
print "The sematic-vector of testA: ", paddle.infer(fA, parameters, testA)
74+
print "The semantic-vector of testA: ", paddle.infer(fA, parameters, testA)
7575
```
7676

7777

docs/guides/model_convert/convert_from_pytorch/deprecated/validate_mapping_files_deprecated.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def process_mapping_index(index_path, item_processor, context={}):
527527

528528
column_names = []
529529
column_count = -1
530-
table_seperator_pattern = re.compile(r"^ *\|(?P<group> *-+ *\|)+ *$")
530+
table_separator_pattern = re.compile(r"^ *\|(?P<group> *-+ *\|)+ *$")
531531

532532
expect_column_names = [
533533
"序号",
@@ -571,22 +571,22 @@ def process_mapping_index(index_path, item_processor, context={}):
571571

572572
elif state == IndexParserState.table_sep_ignore:
573573
if (
574-
not table_seperator_pattern.match(line)
574+
not table_separator_pattern.match(line)
575575
or len(columns) != column_count
576576
):
577577
raise Exception(
578-
f"Table seperator not match at line {i + 1}: {line}"
578+
f"Table separator not match at line {i + 1}: {line}"
579579
)
580580
if not item_processor(line, i, state, output, context):
581581
break
582582
state = IndexParserState.table_row_ignore
583583
elif state == IndexParserState.table_sep:
584584
if (
585-
not table_seperator_pattern.match(line)
585+
not table_separator_pattern.match(line)
586586
or len(columns) != column_count
587587
):
588588
raise Exception(
589-
f"Table seperator not match at line {i + 1}: {line}"
589+
f"Table separator not match at line {i + 1}: {line}"
590590
)
591591
if not item_processor(line, i, state, output, context):
592592
break

docs/guides/model_convert/convert_from_pytorch/tools/get_api_difference_info.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def process_mapping_index(index_path, item_processor, context={}):
497497

498498
column_names = []
499499
column_count = -1
500-
table_seperator_pattern = re.compile(r"^ *\|(?P<group> *-+ *\|)+ *$")
500+
table_separator_pattern = re.compile(r"^ *\|(?P<group> *-+ *\|)+ *$")
501501

502502
expect_column_names = [
503503
"序号",
@@ -541,22 +541,22 @@ def process_mapping_index(index_path, item_processor, context={}):
541541

542542
elif state == IndexParserState.table_sep_ignore:
543543
if (
544-
not table_seperator_pattern.match(line)
544+
not table_separator_pattern.match(line)
545545
or len(columns) != column_count
546546
):
547547
raise Exception(
548-
f"Table seperator not match at line {i + 1}: {line}"
548+
f"Table separator not match at line {i + 1}: {line}"
549549
)
550550
if not item_processor(line, i, state, output, context):
551551
break
552552
state = IndexParserState.table_row_ignore
553553
elif state == IndexParserState.table_sep:
554554
if (
555-
not table_seperator_pattern.match(line)
555+
not table_separator_pattern.match(line)
556556
or len(columns) != column_count
557557
):
558558
raise Exception(
559-
f"Table seperator not match at line {i + 1}: {line}"
559+
f"Table separator not match at line {i + 1}: {line}"
560560
)
561561
if not item_processor(line, i, state, output, context):
562562
break

docs/practices/time_series/stock_forecast.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@
13481348
},
13491349
{
13501350
"cell_type": "code",
1351-
"execution_count": 53,
1351+
"execution_count": null,
13521352
"metadata": {
13531353
"execution": {
13541354
"iopub.execute_input": "2022-12-16T06:18:50.396897Z",
@@ -1424,7 +1424,7 @@
14241424
"\n",
14251425
"model = paddle.Model(LSTM(num_classes, input_size, hidden_size, num_layers))\n",
14261426
"\n",
1427-
"lr_schedual = paddle.optimizer.lr.CosineAnnealingDecay(\n",
1427+
"lr_scheduler = paddle.optimizer.lr.CosineAnnealingDecay(\n",
14281428
" learning_rate=learning_rate, T_max=num_epochs, verbose=False\n",
14291429
")\n",
14301430
"# 设置优化器,学习率,并且把模型参数给优化器\n",

docs/practices/time_series/temperature_forecast.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@
946946
},
947947
{
948948
"cell_type": "code",
949-
"execution_count": 22,
949+
"execution_count": null,
950950
"metadata": {
951951
"execution": {
952952
"iopub.execute_input": "2022-12-07T17:42:50.203156Z",
@@ -971,12 +971,12 @@
971971
"labels = InputSpec([None, 72, 1], \"float32\", \"x\")\n",
972972
"model = paddle.Model(Encoder(future, fea_num), inputs, labels)\n",
973973
"\n",
974-
"lr_schedual = paddle.optimizer.lr.CosineAnnealingDecay(\n",
974+
"lr_scheduler = paddle.optimizer.lr.CosineAnnealingDecay(\n",
975975
" learning_rate=learning_rate, T_max=epoch_num, verbose=False\n",
976976
")\n",
977977
"# 设置优化器,学习率,并且把模型参数给优化器\n",
978978
"opt = paddle.optimizer.Adam(\n",
979-
" learning_rate=lr_schedual,\n",
979+
" learning_rate=lr_scheduler,\n",
980980
" parameters=model.parameters(),\n",
981981
" beta1=0.9,\n",
982982
" beta2=0.999,\n",

0 commit comments

Comments
 (0)