infomat.io.textword
Class TextWordIMatrixConstructor
java.lang.Object
infomat.io.textword.TextWordIMatrixConstructor
public class TextWordIMatrixConstructor
- extends java.lang.Object
For constructing a text-word-IMatrix.
Used in the import classes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matrix
private IMatrix matrix
stringProj
private java.util.HashMap<java.lang.String,IVector<IVectorIndex>> stringProj
stringWordObjectMap
private java.util.HashMap<java.lang.String,IObject> stringWordObjectMap
textObject
IObject textObject
wordObject
IObject wordObject
id
int id
TextWordIMatrixConstructor
public TextWordIMatrixConstructor()
TextWordIMatrixConstructor
public TextWordIMatrixConstructor(IMatrix wordProjectionMatrix,
SparseISimilarity sim)
getIMatrix
public IMatrix getIMatrix()
initialize
private void initialize(IMatrix wordProjectionMatrix,
SparseISimilarity sim)
addText
public void addText(java.lang.String s,
java.lang.String location)
addWord
public void addWord(java.lang.String wordString,
java.lang.String location,
int localCount,
float localWeight,
float weight)