intDocVector.readFields(dataIn);
}
@Test public void testFeaturesSlidingWindow() throws Exception {
for(String dvclass: documentVectorClass) {
DocumentVector dv = DocumentVectorUtility.newInstance(dvclass, intDocVector);
try {
int[] transformedDoc = dv.decompressDocument();
for(Feature f: features.keySet()) {
f.initialize(new TfScoringFunction());
for(int[] query: features.get(f).keySet()) {
int[] transformedTerms = dv.transformTerms(query);
float fValue = f.
computeScoreWithSlidingWindow(transformedDoc, query, transformedTerms, null);
assertEquals(features.get(f).get(query), fValue, 1e-10);
}
}