|
new boolean[index.getDocumentIndex().getNumberOfDocuments()]); |
This worries me. Why, for every query I am scoring, must I create an array that has one entry for each of the documents in the collection. It seems just to record which docids have been used. Why not a HashSet or even better a TIntHashSet?
MatchZooIntegration/IRcourseHM-master/src/main/java/uk/ac/gla/dcs/dsms/MZCommunicator.java
Line 128 in 744352e
This worries me. Why, for every query I am scoring, must I create an array that has one entry for each of the documents in the collection. It seems just to record which docids have been used. Why not a HashSet or even better a TIntHashSet?