cz.cvut.felk.newsgroup.preprocess
Class Model

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<String>
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Model()
           
 
Method Summary
 List<Boolean> fileToVector(BufferedReader fileContent)
          Creates an vector instance from a file under this 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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Model

public Model()
Method Detail

fileToVector

public List<Boolean> fileToVector(BufferedReader fileContent)
                           throws IOException
Creates an vector instance from a file under this model.

Throws:
IOException