Last active
April 8, 2020 11:19
-
-
Save vivekpadia70/98f207ff1e2ee3ffacca66281ecf8b17 to your computer and use it in GitHub Desktop.
This file contains 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
df = pd.read_csv("/home/aubergine/Downloads/imdb-dataset-of-50k-movie-reviews/IMDB Dataset.csv") | |
train_set = 45000 | |
max_len_text = 2000 | |
df['sentiment'] = df['sentiment'].replace('positive', 1) | |
df['sentiment'] = df['sentiment'].replace('negative', 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment