def get_stopwords(path):
    """ Load stop words.

    :param path: path of the stopwords file
    :return: stopwords set
    """

    with open(path, 'r', encoding='utf-8') as doc:
        stoplist = set(doc.read().split())

    return stoplist