def _remove_stopwords(line, nlp):
    """ Helper function for removing stopwords from the given text line. """
    line_nlp = nlp(line)
    line_tokens = [tok.text for tok in line_nlp]
    filtered_line = list()
    # Filter
    for tok in line_tokens:
        lexeme = nlp.vocab[tok]
        if not lexeme.is_stop:
            filtered_line.append(tok)
    return ' '.join(filtered_line)