Spaces:
Runtime error
Runtime error
Update keyphrase_extraction.py
Browse files- 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
|