Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
a686d380
/
simple-h
like
3
Dataset card
Files
Files and versions
Community
1
386dc73
simple-h
/
score.py
a686d380
Create score.py
386dc73
verified
about 1 year ago
raw
Copy download link
history
blame
167 Bytes
def
hscore
(
text
):
cnt =
0
for
i
in
range
(
len
(text)):
if
text[i:i+
1
]
in
keywords
or
text[i:i+
2
]
in
keywords:
cnt+=
1
return
cnt/
len
(text)