-
-
Save Tony607/fd1972c7df0a311c1bdafe3db0f16b1d to your computer and use it in GitHub Desktop.
source: How to generate realistic yelp restaurant reviews with Keras | DLology
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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