enlp.understanding.keywords.keyphrase_list

enlp.understanding.keywords.keyphrase_list(text, language='english', stopwords=[], min_phrase_len=1, max_phrase_len=2, with_scores=True)[source]

Extract keywords from a piece of text

Parameters
textstr

text string from which to extract keywords

languagestr

language of text, must work with nltk

stopwordslist

list of stopwords to consider when extracting keywords

min_phrase_lenint

minimum token length key phrase can be

max_phrase_lenint

maximum token length key phrase can be

with_scoresbool

whether to return phrases with score or not, default is True

Returns
rlist

List of keyphrases