def create_set_list(test_set, fil_df):
    """
    This function creates the list that is going to be appended to the dataframe to determine which specific sentences
    in the data frame are a part of the testing and training sets. When this list is added to the dataframe as a column
    called 'set' it is going to have a 1 in the row where that sentence in that row is a part of the test set
    and a 0 in the row where the sentence in that row is a part of the training set. It returns the filtered dataframe
    with this list appended on to it with the column label 'set' .
    """

    # Create a list of 0's
    set_list = []
    sentences = fil_df['Input.text'].tolist()
    for i in range(len(fil_df['top_label'])):
        set_list.append(0)

    # put a 1 in the row where a testing sentence is
    for sentence in test_set:
        index = sentences.index(sentence)
        set_list[index] = 1

    # add the testing and training list to the dataframe
    fil_df['Set'] = set_list

    return fil_df