adds tf-idf check to parent selection in multip_sh_term_vect