src/language model based query topic analysis/src/edu/virginia/cs/model/LoadLanguageModel.java
public ArrayList<LanguageModel> loadModels(String folder, int param) {
        level = param;
        LoadDirectory(folder, null, 0, "Top");
//        for (LanguageModel lm : languageModels) {
//            System.out.println("------------------------------------------------");
//            System.out.println("Topic Name - " + lm.getTopic_name());
//            if (lm.getParent() != null) {
//                System.out.println("Parent Topic Name - " + lm.getParent().getTopic_name());
//            }
//            if (lm.hasChildren()) {
//                System.out.println("Number of Childrens - " + lm.getListOfChildren().size());
//            }
//            System.out.println(lm.getUnigramLM().toString());
//            System.out.println(lm.getBigramLM().toString());
//            System.out.println(lm.getTrigramLM().toString());
//            System.out.println(lm.getFourgramLM().toString());
//            System.out.println("------------------------------------------------");
//        }
        System.out.println("Number of models loaded = " + languageModels.size());
        return languageModels;
    }
/**
     * Loads language models up to level 'param' from all language models of
     * DMOZ categories.
     *
     * @param folder
     * @param param depth of the hierarchy
     * @return list of language models
     */
Loads language models up to level 'param' from all language models of
DMOZ categories.

@param folder
@param param depth of the hierarchy
@return list of language models
Loads language models up to level ' param ' from all language models of DMOZ categories . @param folder @param param depth of the hierarchy @return list of language models
public ArrayList<LanguageModel> loadModels(String folder, int param) {
        level = param;
        LoadDirectory(folder, null, 0, "Top");
        System.out.println("Number of models loaded = " + languageModels.size());
        return languageModels;
    }
public ArrayList < LanguageModel > loadModels ( String folder , int param ) { level = param ; LoadDirectory ( folder , null , 0 , "Top" ) ; System . out . println ( "Number of models loaded = " + languageModels . size ( ) ) ; return languageModels ; }
Loads language models up to level 'param' from all language models of
 DMOZ categories.
Loads language models up to level ' param ' from all language models of DMOZ categories .
//        for (LanguageModel lm : languageModels) { //            System.out.println("------------------------------------------------"); //            System.out.println("Topic Name - " + lm.getTopic_name()); //            if (lm.getParent() != null) { //                System.out.println("Parent Topic Name - " + lm.getParent().getTopic_name()); //            } //            if (lm.hasChildren()) { //                System.out.println("Number of Childrens - " + lm.getListOfChildren().size()); //            } //            System.out.println(lm.getUnigramLM().toString()); //            System.out.println(lm.getBigramLM().toString()); //            System.out.println(lm.getTrigramLM().toString()); //            System.out.println(lm.getFourgramLM().toString()); //            System.out.println("------------------------------------------------"); //        }