diff --git a/lib/model/yake_keywords.py b/lib/model/yake_keywords.py index 9ac0de3..cb2bc70 100644 --- a/lib/model/yake_keywords.py +++ b/lib/model/yake_keywords.py @@ -49,7 +49,9 @@ def run_yake(self, text: str, ### replace special characters replacement = {"`": "'", "‘": "'", - "“": "\""} + "’": "'", + "“": "\"", + "”": "\""} for k, v in replacement.items(): text = text.replace(k, v) ### extract keywords