From 5550d31b5823b89d355bfa089d412f050f990ffd Mon Sep 17 00:00:00 2001 From: chrys87 Date: Thu, 22 Sep 2016 16:53:31 +0200 Subject: [PATCH] Update punctuationManager.py --- src/fenrir-package/core/punctuationManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrir-package/core/punctuationManager.py b/src/fenrir-package/core/punctuationManager.py index e8077c7a..79cdeaca 100644 --- a/src/fenrir-package/core/punctuationManager.py +++ b/src/fenrir-package/core/punctuationManager.py @@ -32,7 +32,7 @@ class punctuationManager(): def removeUnused(self, text): return text.translate(text.maketrans(string.punctuation, ' '*len(string.punctuation))) def useCustomDict(self, text, customDict): - resultText = text + resultText = str(text) if customDict: for key,item in customDict.items(): resultText = resultText.replace(str(key),str(item))