infomat.vectorspace.ri
Class RI
java.lang.Object
infomat.vectorspace.ri.RI
- All Implemented Interfaces:
- HasProperties
public class RI
- extends java.lang.Object
- implements HasProperties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected Properties properties
objectSet
private IObjectSet objectSet
indexSet
private IObjectSet indexSet
objectReprMap
private java.util.HashMap<java.lang.String,float[]> objectReprMap
objectIndexMap
private java.util.HashMap<java.lang.String,RISparseVector> objectIndexMap
dimensionality
private int dimensionality
nr
private int nr
RI
public RI()
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
addNewWord
public RISparseVector addNewWord(java.lang.String newWord)
add
public void add(java.lang.String focusWord,
java.lang.String contextWord,
float weight)
normalizeRepresentationVectors
public void normalizeRepresentationVectors()
getRepresentation
public float[] getRepresentation(java.lang.String string)
getIndex
public RISparseVector getIndex(java.lang.String string)
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties