Skip to content

Instantly share code, notes, and snippets.

@hamelsmu
Created January 15, 2018 02:15
Show Gist options
  • Save hamelsmu/286bed22be9168fb0f91751264886d20 to your computer and use it in GitHub Desktop.
Save hamelsmu/286bed22be9168fb0f91751264886d20 to your computer and use it in GitHub Desktop.
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