Add hierarchy bags of words.