Run using the below code
!pip install bn-keyword-extractor
from keyword_extractor import KeywordExtractor
extractor = KeywordExtractor()
text = "আমি বাংলায় গান শোনা ভালবাসি।"
keywords = extractor.extract_keywords(text)
print(keywords) # Output: ['শোনা', 'ভালবাসি', 'বাংলায়', 'গান']
If you use it, please cite:
@misc{bn-keyword-extractor,
author = {Tonmoy Talukder},
year = {2023},
title = {Bangla Keyword Extractor},
publisher = {Hugging Face}
}