replace minus and underscore with space in punctuationmanager
This commit is contained in:
parent
1d7ba49e92
commit
7fab080d66
@ -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': '',
|
||||||
|
Loading…
Reference in New Issue
Block a user