Hello,
I'll try to explain everything, putting only what is necessary.
Regarding the statement of KWIC and initialization:
Code:
ArrayList <Integer> index = new ArrayList();
/ / Index ... I filled ...
ArrayList <Concordance> KWIC = new ArrayList(index.size());
for(int i = 0; I <index.size(); I + +){
KWIC.add(new Concordance(this.items, Index.get(i), Q.size(), G, d));
}
Once I did that, I no longer touches KWIC (except for sorting). I have not touched PivotComparator <Concordance> since my last post (I had copied my code).
Bookmarks