Module es.upm.fi.cig.multictbnc
Class DatasetReaderFactory
java.lang.Object
es.upm.fi.cig.multictbnc.data.reader.DatasetReaderFactory
Creates dataset readers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of available dataset readers.Returns the name of available strategies for the extraction of sequences.static DatasetReader
getDatasetReader
(String datasetReader, String pathDataset, int sizeSequence) Generates the correct dataset reader for the given dataset path.
-
Constructor Details
-
DatasetReaderFactory
public DatasetReaderFactory()
-
-
Method Details
-
getAvailableDatasetReaders
Returns the name of available dataset readers.- Returns:
- name of available dataset readers
-
getAvailableStrategies
Returns the name of available strategies for the extraction of sequences.- Returns:
- available strategies
-
getDatasetReader
public static DatasetReader getDatasetReader(String datasetReader, String pathDataset, int sizeSequence) throws FileNotFoundException Generates the correct dataset reader for the given dataset path.- Parameters:
datasetReader
- name of the dataset reader to buildpathDataset
- path of the dataset foldersizeSequence
- maximum length of the sequences when they are extracted from a unique file- Returns:
- a dataset reader a
DatasetReader
- Throws:
FileNotFoundException
- if the provided files were not found
-