From 96c8c490300303548bd47bc3904d30954205cac7 Mon Sep 17 00:00:00 2001 From: OneNewDev Date: Wed, 8 Jun 2022 18:15:29 +0200 Subject: [PATCH] add some strip characters --- tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagger.py b/tagger.py index 83e1ec8..cede670 100644 --- a/tagger.py +++ b/tagger.py @@ -52,7 +52,7 @@ class FileScanner(HTMLParser): title_words = set(title.split('-')) for word in words: # Verschiedene Zeichen vom Anfang und Ende der Wörter entfernen. - tag_name = word.strip(".,:;!?\"'()«»") + tag_name = word.strip(".,:;!?\"'()-„“«» ") # Leere Wörter ignorieren if not tag_name: continue