update similar transcation tagger so that it returns groupping label