def get_file_str(path, num_files, labelled=False, valid_split=None,
                 split_count_thre=None, subset_pct=100):
    """
    Create unique file name for processed data from the number of files, directory name,
    validation split type, and subset percentage
    """
    # grab the directory name as part of the names
    dir_name = path.split('/')[-1] if len(path.split('/')[-1]) > 0 else path.split('/')[-2]
    label_str = 'labelled' if labelled else ''
    split_thre_str = 'thre_{}'.format(split_count_thre) if split_count_thre else ''
    dir_str = 'doc_{}_{}_{}_{}'.format(label_str, dir_name, num_files, split_thre_str)
    if valid_split:
        split_str = '_split_{}'.format(valid_split*100)
    else:
        split_str = ''
    if subset_pct != 100:
        subset_str = '_subset_{}'.format(subset_pct)
    else:
        subset_str = ''
    file_str = dir_str + split_str + subset_str
    return file_str