Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for i in range(len(train_vec)):
to_train['Title_1'][i]=my_docu_in_search(train_vec['search_term'][i],train_vec['product_title'][i])
to_train['Desc_1'][i]=my_docu_in_search(train_vec['search_term'][i],train_vec['product_description'][i])
to_train['Title_2'][i]=my_search_in_docu(train_vec['search_term'][i],train_vec['product_title'][i])
to_train['Desc_2'][i]=my_search_in_docu(train_vec['search_term'][i],train_vec['product_description'][i])
to_train['Len'][i]=len(train_vec['search_term'][i].split())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.