EE21 commited on
Commit
39799b6
1 Parent(s): d90f05d

Update keyphrase_extraction.py

Browse files
Files changed (1) hide show
  1. keyphrase_extraction.py +4 -0
keyphrase_extraction.py CHANGED
@@ -1,6 +1,10 @@
1
  from rake_nltk import Rake
2
  import re
3
 
 
 
 
 
4
  # Define a list of obligation words
5
  obligation_words = [
6
  # English words
 
1
  from rake_nltk import Rake
2
  import re
3
 
4
+ # Download NLTK data
5
+ nltk.download('punkt')
6
+ nltk.download('stopwords')
7
+
8
  # Define a list of obligation words
9
  obligation_words = [
10
  # English words