Created
January 15, 2018 02:15
-
-
Save hamelsmu/286bed22be9168fb0f91751264886d20 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
from ktext.preprocess import processor | |
# instantiate data processing object | |
body_pp = processor(keep_n=8000, padding_maxlen=70) | |
# process data | |
train_body_vecs = body_pp.fit_transform(train_body_raw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment