Here, the sub-categories of a node correspond to the topics.
in the second phase, the hierarchy is traversed top-down and, at each step, words get assigned to the current node based on whether they can discriminate between the current node's children.