I'm probably being really dumb here, but I can't figure out this error:
'str' object has no attribute 'punctuation'
This occurs on the line:
docLines[counter][counter2] = [(docLines[counter][counter2]).translate(None, string.punctuation)]
Where docLines[counter][counter2] is just a single word.
Any ideas where I'm going wrong with is line of code?