Last active
August 9, 2020 04:40
-
-
Save agastidukare/ef053bcf653b8af1b39e90246b2dde12 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
data_clas = (TextList.from_csv(path, 'Tweets.csv', cols='text') | |
#Where are the text? Column 'text' of tweets.csv | |
.split_by_rand_pct(0.2) | |
#How to split it? Randomly with the default 20% in valid | |
.label_from_df(cols='airline_sentiment') | |
#specify the label column | |
.databunch(bs=48)) | |
#Create databunch | |
data_clas.show_batch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment