replace minus and underscore with space in punctuationmanager

This commit is contained in:
chrys 2016-10-02 21:33:54 +02:00
parent 1d7ba49e92
commit 7fab080d66

View File

@ -15,6 +15,10 @@ class punctuationManager():
self.allPunctNone = dict.fromkeys(map(ord, string.punctuation), None) self.allPunctNone = dict.fromkeys(map(ord, string.punctuation), None)
# replace colon with space # replace colon with space
self.allPunctNone[58] = ' ' self.allPunctNone[58] = ' '
# replace minus with space
self.allPunctNone[45] = ' '
# replace underscore with space
self.allPunctNone[95] = ' '
self.punctuation = { self.punctuation = {
'levels':{ 'levels':{
'NONE': '', 'NONE': '',