From 800b771fd456a47518c8779e1c237e5f9341fed2 Mon Sep 17 00:00:00 2001 From: Tomasz Kornuta Date: Wed, 3 Jun 2020 16:32:09 -0700 Subject: [PATCH] formatting fix Signed-off-by: Tomasz Kornuta --- .../dialogue_state_tracking/data/multiwoz/process_multiwoz.py | 4 +--- .../nlp/dialogue_state_tracking/rule_based_policy_multiwoz.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/nlp/dialogue_state_tracking/data/multiwoz/process_multiwoz.py b/examples/nlp/dialogue_state_tracking/data/multiwoz/process_multiwoz.py index 263306d6affd..24db0046f6c3 100644 --- a/examples/nlp/dialogue_state_tracking/data/multiwoz/process_multiwoz.py +++ b/examples/nlp/dialogue_state_tracking/data/multiwoz/process_multiwoz.py @@ -505,9 +505,7 @@ def divideData(data, infold, outfold): # Check if the files exist if ( - if_exist( - abs_target_data_dir, ['ontology.json', 'dev_dials.json', 'test_dials.json', 'train_dials.json', 'db'] - ) + if_exist(abs_target_data_dir, ['ontology.json', 'dev_dials.json', 'test_dials.json', 'train_dials.json', 'db']) and not args.overwrite_files ): print(f'Data is already processed and stored at {abs_source_data_dir}, skipping pre-processing.') diff --git a/examples/nlp/dialogue_state_tracking/rule_based_policy_multiwoz.py b/examples/nlp/dialogue_state_tracking/rule_based_policy_multiwoz.py index b7222b14f82e..e21c6a8cb524 100644 --- a/examples/nlp/dialogue_state_tracking/rule_based_policy_multiwoz.py +++ b/examples/nlp/dialogue_state_tracking/rule_based_policy_multiwoz.py @@ -35,7 +35,7 @@ """ import argparse -from os.path import expanduser, exists +from os.path import exists, expanduser from nemo import core as nemo_core from nemo.backends.pytorch.common import EncoderRNN