Module es.upm.fi.cig.multictbnc
Class MultipleCSVWriter
java.lang.Object
es.upm.fi.cig.multictbnc.data.writer.MultipleCSVWriter
Manages the writing of datasets into CSV files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidWrites the sequences of the provided dataset to multiple CSV files in the specified directory.static voidWrites the sequences of the provided dataset to multiple CSV files in the specified directory, including only the specified feature variables.static voidWrites a sequence to a CSV file in the specified directory.static voidWrites a sequence to a CSV file in the specified directory and including only the specified feature variables.
-
Constructor Details
-
MultipleCSVWriter
public MultipleCSVWriter()
-
-
Method Details
-
write
Writes the sequences of the provided dataset to multiple CSV files in the specified directory.- Parameters:
dataset- dataset whose sequences are written to multiple CSV filesdestinationPath- directory path where the CSVs are stored
-
write
Writes a sequence to a CSV file in the specified directory.- Parameters:
sequence-Sequencewhich is written to a CSV filedestinationPath- directory path where the CSV is storednameFile- name for the CSV file
-
write
Writes the sequences of the provided dataset to multiple CSV files in the specified directory, including only the specified feature variables.- Parameters:
dataset- dataset whose sequences are written to multiple CSV filesfeaturesToInclude- list of feature variables to include in the CSV filesdestinationPath- path where the CSVs are stored
-
write
public static void write(Sequence sequence, List<String> featuresToInclude, String destinationPath, String nameFile) Writes a sequence to a CSV file in the specified directory and including only the specified feature variables.- Parameters:
sequence-Sequencewhich is written to a CSV filefeaturesToInclude- list of feature variables to include in the CSVdestinationPath- directory path where the CSV is storednameFile- name for the CSV file
-