Skip to content

Commit ff401f3

Browse files
committed
Do not use underscore in parameter names
Signed-off-by: PeganovAnton <[email protected]>
1 parent 97353c6 commit ff401f3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/nlp/punctuation_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def parse_args() -> argparse.Namespace:
2020
)
2121
parser.add_argument("--query", default="can you prove that you are self aware", help="Input Query")
2222
parser.add_argument(
23-
"--run_tests",
23+
"--run-tests",
2424
action='store_true',
2525
help="Flag to run sanity tests. If this option is chosen, then options `--query` and `--interactive` are "
2626
"ignored and a model is run on several hardcoded examples and numbers of passed and failed tests are shown.",

scripts/nlp/update_intent_slot_test_data_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def parse_args() -> argparse.Namespace:
1313
"'BOS <intent> <text> EOS'. This script keeps only <text> in <query> and removes auxiliary "
1414
"<intent> field and BOS and EOS."
1515
)
16-
parser.add_argument("--input_file", type=Path, help="A path to an input .tsv file.", required=True)
17-
parser.add_argument("--output_file", type=Path, help="A path to an output .tsv file.", required=True)
16+
parser.add_argument("--input-file", type=Path, help="A path to an input .tsv file.", required=True)
17+
parser.add_argument("--output-file", type=Path, help="A path to an output .tsv file.", required=True)
1818
args = parser.parse_args()
1919
args.input_file = args.input_file.expanduser()
2020
args.output_file = args.output_file.expanduser()

tests/integration/nlp/test_punctuation_client.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function test_interactive(){
7676
test_interactive
7777

7878
function test_run_tests(){
79-
exp_options="--run_tests"
79+
exp_options="--run-tests"
8080
echo " options: ${exp_options}"
8181
stdout_file="${test_output_dir}/stdout_run_tests.txt"
8282
stderr_file="${test_output_dir}/stderr_run_tests.txt"
@@ -95,7 +95,7 @@ function test_run_tests(){
9595
if [[ "${OSTYPE}" != msys ]] && [[ "${OSTYPE}" != win32 ]]; then
9696
test_run_tests
9797
else
98-
echo " Skipping testing of option --run_tests. Cannot be tested on Windows because of Korean characters."
98+
echo " Skipping testing of option --run-tests. Cannot be tested on Windows because of Korean characters."
9999
fi
100100

101101
set +e

0 commit comments

Comments
 (0)