|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.iv.mds.util.Preprocessor
public class Preprocessor
Constructor Summary | |
---|---|
Preprocessor()
Creates a new instance of Preprocessor |
Method Summary | |
---|---|
int |
getDocumentCount()
Returns the number of documents. |
int |
getMaxDimension()
Returns the maximum offset found in one of the vectors of the documents. |
int[][] |
getOffsets()
Returns the offsets array of the documents. |
double[][] |
getValues()
Returns the values array of the documents. |
static java.math.BigInteger[][] |
readHashFile(java.lang.String file)
Reads file with hash values which have corresponding indices to vectors. |
void |
readVectors(java.lang.String tfidfFile)
Reads a file with vectors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Preprocessor()
Method Detail |
---|
public void readVectors(java.lang.String tfidfFile) throws java.io.FileNotFoundException, java.io.IOException
tfidfFile
- file (with path) to be read
java.io.FileNotFoundException
java.io.IOException
public int[][] getOffsets()
public double[][] getValues()
public int getDocumentCount()
public int getMaxDimension()
public static java.math.BigInteger[][] readHashFile(java.lang.String file) throws java.io.FileNotFoundException, java.io.IOException
file
- file (with path) to be read
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |