a686d380 commited on
Commit
779443d
1 Parent(s): 386dc73

Update score.py

Browse files
Files changed (1) hide show
  1. score.py +3 -0
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)):