Package weka.core.converters
Class AArffLoader
- java.lang.Object
-
- weka.core.converters.AbstractLoader
-
- weka.core.converters.AbstractFileLoader
-
- weka.core.converters.ArffLoader
-
- weka.core.converters.AArffLoader
-
- All Implemented Interfaces:
Serializable
,weka.core.converters.BatchConverter
,weka.core.converters.FileSourcedConverter
,weka.core.converters.IncrementalConverter
,weka.core.converters.Loader
,weka.core.converters.URLSourcedLoader
,weka.core.EnvironmentHandler
,weka.core.RevisionHandler
public class AArffLoader extends weka.core.converters.ArffLoader
Safe version of theArffLoader
, always retaining string values.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AArffLoader.AArffReader
-
Field Summary
-
Fields inherited from class weka.core.converters.ArffLoader
FILE_EXTENSION, FILE_EXTENSION_COMPRESSED, m_ArffReader, m_retainStringVals, m_sourceReader, m_URL
-
-
Constructor Summary
Constructors Constructor Description AArffLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileDescription()
Returns a description of the file type.weka.core.Instances
getStructure()
Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.-
Methods inherited from class weka.core.converters.ArffLoader
getDataSet, getFileExtension, getFileExtensions, getNextInstance, getRetainStringVals, getRevision, globalInfo, main, reset, retainStringValsTipText, retrieveFile, retrieveURL, setFile, setRetainStringVals, setSource, setSource, setURL
-
-
-
-
Method Detail
-
getStructure
public weka.core.Instances getStructure() throws IOException
Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.- Specified by:
getStructure
in interfaceweka.core.converters.Loader
- Overrides:
getStructure
in classweka.core.converters.ArffLoader
- Returns:
- the structure of the data set as an empty set of Instances
- Throws:
IOException
- if an error occurs
-
getFileDescription
public String getFileDescription()
Returns a description of the file type.- Specified by:
getFileDescription
in interfaceweka.core.converters.FileSourcedConverter
- Overrides:
getFileDescription
in classweka.core.converters.ArffLoader
- Returns:
- a short file description
-
-