Skip to content

Commit

Permalink
Add first rake test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawen Voon committed Oct 1, 2020
1 parent f37aa9f commit 0d91ba0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_rake.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from rake_new2 import Rake

r = Rake()

text = "How are your children ?"
r.get_keywords_from_raw_text(text)
def test_first_rake_test():
r = Rake()

print(r.get_keywords_with_scores())
text = "How are your children ?"
r.get_keywords_from_raw_text(text)

result = r.get_keywords_with_scores()
assert result == {(1.0, 'children')}

0 comments on commit 0d91ba0

Please sign in to comment.