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)