def result_format(task, clf, ftype, fscope, token, partition, res):
    """
    Helper function to produce result dictionary (for use in dataframe)
    """
    return {
        "task": task,
        "classifier": clf,
        "feature_type": ftype,
        "feature_scope": fscope,
        "token": token,
        "partition": str(int(partition) + 1),
        "results": res,
    }