tp.builder
Class BuilderVector

java.lang.Object
  extended by 
      extended by tp.builder.BuilderVector

public class BuilderVector
extends

A class, which builds the weight vectors for features representing the text documents (for TF or TF-IDF representation)


Constructor Summary
BuilderVector()
          Constructor of the class
 
Method Summary
 DocsRepresentDB calculateTF(DocsRepresentDB database)
          Scans all features of all documents and counts their TF values
 DocsRepresentDB calculateTFIDF(DocsRepresentDB database)
          Scans all features of all documents and counts their TF-IDF values
protected  java.lang.Void doInBackground()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderVector

public BuilderVector()
Constructor of the class

Method Detail

calculateTF

public DocsRepresentDB calculateTF(DocsRepresentDB database)
Scans all features of all documents and counts their TF values

Parameters:
database - database of documents representations
Returns:
document representation with weight vectors

calculateTFIDF

public DocsRepresentDB calculateTFIDF(DocsRepresentDB database)
Scans all features of all documents and counts their TF-IDF values

Parameters:
database - database of documents representations
Returns:
document representation with weight vectors

doInBackground

protected java.lang.Void doInBackground()
                                 throws java.lang.Exception
Throws:
java.lang.Exception