def load_stopwords(path):
    """Loads stopwords from `path`, assume each word in new line."""
    stopwords = set()
    with open(path) as f:
        for line in f:
            stopwords.add(line.strip())
    return stopwords