cz.cvut.felk.newsgroup.preprocess
Class Model
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<String>
cz.cvut.felk.newsgroup.preprocess.Model
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess
public class Model
- extends ArrayList<String>
Model defines the vector-representation of a textual file.
Roughly speaking, the model is a list of "columns" titles,
which define the dataset. They are the words, which can be either
present or missing in a testing example.
This class defines the model and contains a method to convert
an text file into an model-instance.
- See Also:
- Serialized Form
Constructor Summary |
Model()
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Model
public Model()
fileToVector
public List<Boolean> fileToVector(BufferedReader fileContent)
throws IOException
- Creates an vector instance from a file under this model.
- Throws:
IOException