public virtual void initialize(System.String baseDir, System.String configFile) { wp = new WPhead[5000]; for (int i = 0; i < 5000; i++) { wp[i] = new WPhead(this); } wp_end = 1; mn = new MNode[10000]; for (int i = 0; i < 10000; i++) { mn[i] = new MNode(this); } mn_end = 1; JSONReader json = new JSONReader(configFile); PWT_POS_TDBM_FILE = baseDir + "/" + json.getValue("pwt.pos"); PTT_POS_TDBM_FILE = baseDir + "/" + json.getValue("ptt.pos"); PTT_WP_TDBM_FILE = baseDir + "/" + json.getValue("ptt.wp"); pwt_pos_tf = new ProbabilityDBM(PWT_POS_TDBM_FILE); ptt_wp_tf = new ProbabilityDBM(PTT_WP_TDBM_FILE); ptt_pos_tf = new ProbabilityDBM(PTT_POS_TDBM_FILE); }
public virtual void initialize(System.String baseDir, System.String configFile) { wp = new WPhead[5000]; for (int i = 0; i < 5000; i++) { wp[i] = new WPhead(this); } wp_end = 1; mn = new MNode[10000]; for (int i = 0; i < 10000; i++) { mn[i] = new MNode(this); } mn_end = 1; JSONReader json = new JSONReader(configFile); PWT_POS_TDBM_FILE = baseDir + "/" + json.getValue("pwt.pos"); PTT_POS_TDBM_FILE = baseDir + "/" + json.getValue("ptt.pos"); PTT_WP_TDBM_FILE = baseDir + "/" + json.getValue("ptt.wp"); pwt_pos_tf = new ProbabilityDBM(PWT_POS_TDBM_FILE); ptt_wp_tf = new ProbabilityDBM(PTT_WP_TDBM_FILE); ptt_pos_tf = new ProbabilityDBM(PTT_POS_TDBM_FILE); }