Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Combining corpus and queries for training
combined_training=pd.concat([training_corpus.rename(columns={'lemmatized':'text'})['text'],\
training_queries.rename(columns={'cleaned':'text'})['text']])\
.sample(frac=1).reset_index(drop=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment