tp.store
Class StoreCSV
java.lang.Object
tp.store.StoreCSV
- All Implemented Interfaces:
- StoreInterface
public class StoreCSV
- extends
- implements StoreInterface
Class for saving pre-processed documents in CSV files.
Constructor Summary |
StoreCSV(java.lang.String separator)
Constructor of the class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreCSV
public StoreCSV(java.lang.String separator)
- Constructor of the class
- Parameters:
separator
- separator of values in a CSV file
writeDocRepresentation
public void writeDocRepresentation(java.io.File file,
java.util.ArrayList<DocsRepresentDB.FeatureDF> features_array,
DocsRepresentDB representation_database,
boolean write_topic)
- Writes the whole database of document representations into a CSV file.
- Specified by:
writeDocRepresentation
in interface StoreInterface
- Parameters:
file
- a file, into which the representations will be writtenfeatures_array
- array of all features (1st row in file)representation_database
- database of all document representationswrite_topic
- boolean value, if the categories of documents are stored
doInBackground
protected java.lang.Void doInBackground()
throws java.lang.Exception
- Throws:
java.lang.Exception