Skip to content

Instantly share code, notes, and snippets.

@Tony607
Created February 23, 2018 09:30
Show Gist options
  • Save Tony607/fd1972c7df0a311c1bdafe3db0f16b1d to your computer and use it in GitHub Desktop.
Save Tony607/fd1972c7df0a311c1bdafe3db0f16b1d to your computer and use it in GitHub Desktop.
source: How to generate realistic yelp restaurant reviews with Keras | DLology
# remove new line characters
rnn_fivestar_reviews_only=rnn_fivestar_reviews_only.replace({r'\n+': ''}, regex=True)
# remove dupliated reviews
final=rnn_fivestar_reviews_only.drop_duplicates()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment