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

Losing the context of phrase #16

Closed sairajh closed 6 years ago

sairajh commented 6 years ago

not and other negation words are currently part of the stopword list which is thus not detected as a part of the keyphrase. This in turn changes the context of the keyphrase. for eg - This is not one of the best places i have been to keyphrase - best place

csurfer commented 6 years ago

@sairajh : You can provide your own list of stopwords if the list of default stopwords is not suitable for your purpose.

You can even re-use the nltk stopwords and append your own list and use to combination list as your list of stopwords.