set minimum score to 20
This commit is contained in:
parent
425b8588fd
commit
d1c75bd274
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class FileScanner(HTMLParser):
|
|||
self.texte.append(data)
|
||||
|
||||
|
||||
def display_tags(tags, min_score=10):
|
||||
def display_tags(tags, min_score):
|
||||
for tag in tags:
|
||||
if tag.score <= min_score:
|
||||
continue
|
||||
|
@ -101,7 +101,7 @@ def main():
|
|||
continue
|
||||
scanner = FileScanner(file)
|
||||
tags = scanner.scan_file()
|
||||
display_tags(tags)
|
||||
display_tags(tags, min_score=20)
|
||||
final_tags[title] = tags[:TAGS_PER_ARTICLE] if len(tags) > TAGS_PER_ARTICLE else tags
|
||||
# write_tags(final_tags)
|
||||
|
||||
|
|
Loading…
Reference in a new issue