hin/key2.py

9 lines
262 B
Python
Raw Normal View History

2024-09-27 12:11:59 +02:00
from rake_nltk import Rake
import nltk
rake_nltk_var = Rake()
text = "Characterization of SiC MOSFET using double pulse test method."
rake_nltk_var.extract_keywords_from_text(text)
keyword_extracted = rake_nltk_var.get_ranked_phrases()
print(keyword_extracted)