csurfer / rake-nltk

Python implementation of the Rapid Automatic Keyword Extraction algorithm using NLTK.
https://csurfer.github.io/rake-nltk
MIT License
1.06k stars 150 forks source link

Incorporate stopwords in keyword extraction #20

Closed Ravenclaw968 closed 6 years ago

Ravenclaw968 commented 6 years ago

Hello and first of all great API,

Is there a way to allow the incorporation of stopwords and punctuation in the keyword analysis?

Thanks!

csurfer commented 6 years ago

We use stopwords from the language if none is given. When stopwords and punctuation are given we use that instead. So give the stopwords and punctuation but give a word/punctuation not in the text you are using but also not one of the stopwords. That should work for you I guess.