logpai / logparser

A machine learning toolkit for log parsing [ICSE'19, DSN'16]
Other
1.56k stars 551 forks source link

update code with python >3.6 version Spell #83

Closed shoaib-intro closed 1 year ago

shoaib-intro commented 2 years ago

Hi, I observed there is most frequent error in log parsing drain and spell which is: re.error: bad escape \s at position 0 because of this someone need to install python 3.6. can fix this in spell by replacing splitter = re.sub(' +', '\s+', splitters[k]) with splitter = re.sub(' +', '\\\s+', splitters[k]) #splitter = re.sub(' +', '\s+', splitters[k])?