public void load(String fileDict, String fileOther, Mode mode) {
        if(fileDict!=null) {
            dict = new Dictionary();
            dict.getText(fileDict);
        }

        if (mode == Mode.DMC) {
            dmc = new DMM();
            dmc.load(fileOther);
        } else if (mode == Mode.HMM) {
            hmm = new HMMPre();
            hmm.load(fileOther);
        } else if (mode == Mode.HMMEnd) {
            hmmEnd = new HMM();
            hmmEnd.load(fileOther);
        } else if (mode == Mode.VLMC) {
            vlmc = new PST();
            vlmc.load(fileOther);
        } else {
            ngrams = new Ngram(this.ngramSize);
            ngrams.getText(fileOther);
        }
    }