}
}
parser.close();
//after all the training set is being parsed, calculate the prior probability for all the words.
factory.calculateWordPrior();
return factory;
}
private HashSet<String> getnodeNameSet(ArrayList<HierarchyTree> genusNodeList){
HashSet<String> nodeNameSet = new HashSet<String>();