def remove_stopwords(tokens, language):
 from nltk.corpus import stopwords
 stop_words = stopwords.words(language)
 tokens = (set(tokens) - set(stop_words))
 return tokens

def remove_stopwords ( tokens , language ) : from nltk . corpus import stopwords stop_words = stopwords . words ( language ) tokens = ( set ( tokens ) - set ( stop_words ) ) return tokens
takes a language .