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