3031323334353637383940
ma.createLogger(null); Timer timer = new Timer(); timer.start(); List<MExpression> ret = ma.analyze(string); timer.stop(); timer.printMsg("Time"); ret = ma.postProcess(ret); ret = ma.leaveJustBest(ret);
134135136137138139140141142143144
loadDic(); } catch (Exception e) { e.printStackTrace(); } finally { timer.stop(); timer.printMsg("Dictionary Loading Time"); System.out.println("Loaded Item " + table.size()); } }
160161162163164165166167168169170
dictionary.loadDic(); } catch (Exception e) { e.printStackTrace(); } finally { timer.stop(); timer.printMsg("Dictionary Loading Time"); System.out.println("Loaded Item " + dictionary.table.size()); } } }
190191192193194195196197198199200
} } catch (Exception e) { e.printStackTrace(); } finally { timer.stop(); timer.printMsg("Dictionary Loading Time"); System.out.println("Loaded Item " + dictionary.table.size()); } } }
1210121112121213121412151216121712181219
MExpression me = meList.get(i); if( me.getExp().indexOf(str) > -1 ) { ret.addAll(me); } } timer.printMsg(ret.size() + " candidates found."); timer.stop(); return ret; } }