It has a minor problem…. It loads
worddump into memory (the whole thing 2GB and crash) I modified the source and it’s ok
now. Here is the update In HtWordList.cc In int HtWordList::Load(const String& filename) This while (data.readLine(fl)) { next = new HtWordReference; if (next->Load(data) != OK) { delete next; continue; }
words->Add(next); } change to int i; while (data.readLine(fl)) { next = new HtWordReference; if (next->Load(data) != OK) { delete next; continue; } i++; words->Add(next); if
(i>50000) { Flush(); i=0; } } |