I have the following code
import nltk, os, json, csv, string, cPickle from scipy.stats import scoreatpercentile lmtzr = nltk.stem.wordnet.WordNetLemmatizer
If you just want to implement something like this: "123hello.jpg".translate(None, 0123456789") then try this:
"123hello.jpg".translate(None, 0123456789")
"".join(c for c in "123hello.jpg" if c not in "0123456789")
Ouput: hello.jpg