Skip to content

Instantly share code, notes, and snippets.

@arshjat
Last active January 1, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arshjat/363076c833ae67595bc088ad5c6e9653 to your computer and use it in GitHub Desktop.
Save arshjat/363076c833ae67595bc088ad5c6e9653 to your computer and use it in GitHub Desktop.
full_text = list(train['tweet'].values) + list(test['tweet'].values)
full_text = [i.lower() for i in full_text if i not in stopwords.words('english') and i not in ['.',',','/','@','"','&amp','<br />','+/-','zzzzzzzzzzzzzzzzz',':-D',':D',':P',':)','!',';']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment