anl.aida.sv
Class SVIndexBuilder

java.lang.Object
  extended by anl.aida.sv.SVIndexBuilder

public class SVIndexBuilder
extends java.lang.Object

Creates a semantic vectors index, consisting of the terms and doc files.


Field Summary
private  Filter<MIFSTerm> filter
           
private  int seedLength
           
 
Constructor Summary
SVIndexBuilder(int seedLength, Filter<MIFSTerm> filter)
          Creates an SVIndexBuilder with the specified seedlength and minFreq.
SVIndexBuilder(int seedLength, int minFreq)
          Creates an SVIndexBuilder with the specified seedlength and minFreq.
 
Method Summary
 void buildIndex(java.lang.String termVecFile, java.lang.String docVecFile, ScoredTermsCollection stc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seedLength

private int seedLength

filter

private Filter<MIFSTerm> filter
Constructor Detail

SVIndexBuilder

public SVIndexBuilder(int seedLength,
                      int minFreq)
Creates an SVIndexBuilder with the specified seedlength and minFreq.

Parameters:
seedLength - the seed length used to build the vectors.
minFreq - the minimum number of documents a word must appear in order to be included in the index.

SVIndexBuilder

public SVIndexBuilder(int seedLength,
                      Filter<MIFSTerm> filter)
Creates an SVIndexBuilder with the specified seedlength and minFreq.

Parameters:
seedLength - the seed length used to build the vectors.
minFreq - the minimum number of documents a word must appear in order to be included in the index.
Method Detail

buildIndex

public void buildIndex(java.lang.String termVecFile,
                       java.lang.String docVecFile,
                       ScoredTermsCollection stc)
                throws java.io.IOException
Throws:
java.io.IOException