Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove punctuation and special charaacters nltk

traindf['title'] =traindf['title'].apply(lambda x: ' '.join([re.sub('[^a-zA-Z]' , "",word) for word in x.split() 
                                                            ]))
 
PREVIOUS NEXT
Tagged: #remove #punctuation #special #charaacters #nltk
ADD COMMENT
Topic
Name
4+4 =