Downloads · 30 days
0
0% of all-time downloads
HuyRemy/text2keywords
text2keywords is a machine learning model from HuyRemy. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- [](https://colab.research.google.com/drive/1dbfKhWmXaCcFsOrl7tlOKiLDkGuQhpZy?usp=sharing)
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
4
Public
Repo size
481 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 50%
From the Hugging Face model README
Easy models to extract string text to keywords, it can be use for analysys user prompt then query fulltext search in indexed datasets, Apache Lucense, Sphinx...
import joblib
import nltk
nltk.download('punkt')
extract_keywords_model = joblib.load('huyremy_keywords_model.pkl')
# Sử dụng model để trích xuất từ khóa từ văn bản
text = """
Hello! I’m HuyRemy, a Software and Hardware Developer based
in Ha Noi. I have completed everything in Electronic Engineering and
and Electrical Engineering. In the fact I dev this mod for fun and...try it...it work. Good luck.
"""
keywords = extract_keywords_model(text)
# In ra màn hình những từ khóa có tần suất xuất hiện cao nhất
for keyword, count in keywords.most_common():
print(keyword)
