readabilite: increase penalty for high link density

master
pictuga 2020-08-21 23:55:04 +02:00
parent 94097f481a
commit b5b355aa6e
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def score_node(node):
if wc != 0:
wca = count_words(' '.join([x.text_content() for x in node.findall('.//a')]))
score = score * ( 1 - float(wca)/wc )
score = score * ( 1 - 2 * float(wca)/wc )
return score