Update score.py
Browse files
score.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
def hscore(text):
|
2 |
cnt = 0
|
3 |
for i in range(len(text)):
|
|
|
1 |
+
keywords = open('keywords.txt',encoding='utf-8').read()
|
2 |
+
keywords = set([key.strip() for key in keywords.split()])
|
3 |
+
|
4 |
def hscore(text):
|
5 |
cnt = 0
|
6 |
for i in range(len(text)):
|