HuyRemy commited on
Commit
f233b48
·
verified ·
1 Parent(s): 13352ac

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ### Model Description
3
+
4
+ <!-- Provide a longer summary of what this model is. -->
5
+
6
+ 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...
7
+
8
+ - **Developed by:** **HuyRemy**
9
+ - **Funded by :** **HuyRemy**
10
+ - **Shared by :** **HuyRemy**
11
+ - **Model type:** **NLP**
12
+ -
13
+ ### Direct Use
14
+ ``` Python
15
+ import joblib
16
+ import nltk
17
+ nltk.download('punkt')
18
+ extract_keywords_model = joblib.load('huyremy_keywords_model.pkl')
19
+
20
+ # Sử dụng model để trích xuất từ khóa từ văn bản
21
+ text = """
22
+ Hello! I’m HuyRemy, a Software and Hardware Developer based
23
+ in Ha Noi. I have completed everything in Electronic Engineering and
24
+ and Electrical Engineering. In the fact I dev this mod for fun and...try it...it work. Good luck.
25
+ """
26
+ keywords = extract_keywords_model(text)
27
+
28
+ # In ra màn hình những từ khóa có tần suất xuất hiện cao nhất
29
+ for keyword, count in keywords.most_common():
30
+ print(keyword)
31
+ ```