public abstract class AbstractVectorSpaceModel extends AbstractCloneableSerializable implements VectorSpaceModel
VectorSpaceModel
class. It handles
the conversion of Vectorizable
objects to Vector
objects.Constructor and Description |
---|
AbstractVectorSpaceModel()
Creates a new
AbstractVectorSpaceModel . |
Modifier and Type | Method and Description |
---|---|
void |
add(Vectorizable document)
Adds a document to the model.
|
void |
addAll(java.lang.Iterable<? extends Vectorizable> documents)
Adds all of the given documents to the model.
|
boolean |
remove(Vectorizable document)
Removes the document from the model.
|
boolean |
removeAll(java.lang.Iterable<? extends Vectorizable> documents)
Removes all of the given documents from the model.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getDocumentCount, remove
public AbstractVectorSpaceModel()
AbstractVectorSpaceModel
.public void add(Vectorizable document)
VectorSpaceModel
add
in interface VectorSpaceModel
document
- Adds a document to the model.public void addAll(java.lang.Iterable<? extends Vectorizable> documents)
VectorSpaceModel
addAll
in interface VectorSpaceModel
documents
- The documents to add.public boolean remove(Vectorizable document)
VectorSpaceModel
remove
in interface VectorSpaceModel
document
- The document to remove.public boolean removeAll(java.lang.Iterable<? extends Vectorizable> documents)
VectorSpaceModel
removeAll
in interface VectorSpaceModel
documents
- The documents to remove.