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

How get_word_frequency_distribution() work? #12

Closed luangtatipsy closed 7 years ago

luangtatipsy commented 7 years ago

Hi, Here is my example

from rake_nltk import Rake r = Rake() r.extract_keywords_from_text("foo is a foo. but bar is not foo") r.get_word_frequency_distribution()

Here is my output

{'bar': 1, 'foo': 1}

Why frequency of "foo" is 1? Thank advance.

Ps. My English skill is not good. Sorry :(