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
- text
str text string from which to extract keywords
- language
str language of text, must work with nltk
- stopwords
list list of stopwords to consider when extracting keywords
- min_phrase_len
int minimum token length key phrase can be
- max_phrase_len
int maximum token length key phrase can be
- with_scores
bool whether to return phrases with score or not, default is True
- text
- Returns
- r
list List of keyphrases
- r