def read_stopwords(path):
    """
    Loads stop words.
    :param path: path to file containing the smart stop words
    :return: set containing all stop words
    """
    stopwords = set()
    with open(path, "r") as file_stopwords:
        for line in file_stopwords:
            line = line.rstrip()
            if line[0] == "#":
                continue
            else:
                stopwords.add(line)
    return stopwords