build a taxonomy given a corpus