Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created March 6, 2019 18:31
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 prateekjoshi565/b12741e0b0d1261d7ddf9267cf226336 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/b12741e0b0d1261d7ddf9267cf226336 to your computer and use it in GitHub Desktop.
remove url elmo
# remove URL's from train and test
train['clean_tweet'] = train['tweet'].apply(lambda x: re.sub(r'http\S+', '', x))
test['clean_tweet'] = test['tweet'].apply(lambda x: re.sub(r'http\S+', '', x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment