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.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, getDocumentCount, removepublic AbstractVectorSpaceModel()
AbstractVectorSpaceModel.public void add(Vectorizable document)
VectorSpaceModeladd in interface VectorSpaceModeldocument - Adds a document to the model.public void addAll(java.lang.Iterable<? extends Vectorizable> documents)
VectorSpaceModeladdAll in interface VectorSpaceModeldocuments - The documents to add.public boolean remove(Vectorizable document)
VectorSpaceModelremove in interface VectorSpaceModeldocument - The document to remove.public boolean removeAll(java.lang.Iterable<? extends Vectorizable> documents)
VectorSpaceModelremoveAll in interface VectorSpaceModeldocuments - The documents to remove.