public class Word2VecLoader
extends weka.core.converters.AbstractFileLoader
implements weka.core.converters.BatchConverter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION
the file extension.
|
static java.lang.String |
FILE_EXTENSION_COMPRESSED
the extension for compressed files.
|
Constructor and Description |
---|
Word2VecLoader() |
Modifier and Type | Method and Description |
---|---|
weka.core.Instances |
getDataSet() |
java.lang.String |
getFileDescription() |
java.lang.String |
getFileExtension() |
java.lang.String[] |
getFileExtensions() |
weka.core.Instance |
getNextInstance(weka.core.Instances structure) |
java.lang.String |
getRevision() |
weka.core.Instances |
getStructure() |
static void |
main(java.lang.String[] args)
Main method for testing this class.
|
void |
setSource(java.io.File file)
Resets the Loader object and sets the source of the data set to be the supplied File object.
|
void |
setStructure() |
public static java.lang.String FILE_EXTENSION
public static java.lang.String FILE_EXTENSION_COMPRESSED
public static void main(java.lang.String[] args)
args
- should contain <filestem>[.names | data]public java.lang.String getFileExtension()
getFileExtension
in interface weka.core.converters.FileSourcedConverter
FileSourcedConverter.getFileExtension()
public java.lang.String[] getFileExtensions()
getFileExtensions
in interface weka.core.converters.FileSourcedConverter
public java.lang.String getFileDescription()
getFileDescription
in interface weka.core.converters.FileSourcedConverter
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
public void setStructure()
public weka.core.Instances getStructure() throws java.io.IOException
getStructure
in interface weka.core.converters.Loader
getStructure
in class weka.core.converters.AbstractLoader
java.io.IOException
public weka.core.Instances getDataSet() throws java.io.IOException
getDataSet
in interface weka.core.converters.Loader
getDataSet
in class weka.core.converters.AbstractLoader
java.io.IOException
public void setSource(java.io.File file) throws java.io.IOException
setSource
in interface weka.core.converters.Loader
setSource
in class weka.core.converters.AbstractFileLoader
file
- the source file.java.io.IOException
- if an error occurspublic weka.core.Instance getNextInstance(weka.core.Instances structure) throws java.io.IOException
getNextInstance
in interface weka.core.converters.Loader
getNextInstance
in class weka.core.converters.AbstractLoader
java.io.IOException