Skip to content

Instantly share code, notes, and snippets.

@hamelsmu
Created January 15, 2018 06:07
Show Gist options
  • Save hamelsmu/5d92dfac373ca00f7c7e62e25e01871a to your computer and use it in GitHub Desktop.
Save hamelsmu/5d92dfac373ca00f7c7e62e25e01871a to your computer and use it in GitHub Desktop.
# instantiate the pre-processor for titles
title_pp = processor(append_indicators=True, keep_n=4500,
padding_maxlen=12, padding ='post')
# process the titles
train_title_vecs = title_pp.fit_transform(train_title_raw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment