enlp.processing.stdtools.get_stopwords

enlp.processing.stdtools.get_stopwords()[source]

Get list of Norwegian and English stopwords.

Get stopwords list from Spacy for Norwegian and English, returning each list separately as well as a combined list

Returns
stopwordslist

lists of combination of Norwegian and English stopwords, Norwegian stopwords, English stopwords

stops_nblist

lists of Norwegian stopwords

stops_enlist

lists of English stopwords

Notes

This has assumed both norwegian and english language models have been downloaded

Examples

>>> stopwords_all, stopwords_norwegian, stopwords_english = get_stopwords()
>>> print(stopwords[:5])
['therein', 'neither', 'indeed', 'whereby', 'yourself']