From 7fab080d668ffae8b2282e526ea2482f563a0ad8 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 2 Oct 2016 21:33:54 +0200 Subject: [PATCH] replace minus and underscore with space in punctuationmanager --- src/fenrir-package/core/punctuationManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fenrir-package/core/punctuationManager.py b/src/fenrir-package/core/punctuationManager.py index e9ad7620..fd1f3ac6 100644 --- a/src/fenrir-package/core/punctuationManager.py +++ b/src/fenrir-package/core/punctuationManager.py @@ -15,6 +15,10 @@ class punctuationManager(): self.allPunctNone = dict.fromkeys(map(ord, string.punctuation), None) # replace colon with space self.allPunctNone[58] = ' ' + # replace minus with space + self.allPunctNone[45] = ' ' + # replace underscore with space + self.allPunctNone[95] = ' ' self.punctuation = { 'levels':{ 'NONE': '',