infomat.vectorspace.ri
Class RI

java.lang.Object
  extended by infomat.vectorspace.ri.RI
All Implemented Interfaces:
HasProperties

public class RI
extends java.lang.Object
implements HasProperties


Field Summary
private  int dimensionality
           
private  IObjectSet indexSet
           
private  int nr
           
private  java.util.HashMap<java.lang.String,RISparseVector> objectIndexMap
           
private  java.util.HashMap<java.lang.String,float[]> objectReprMap
           
private  IObjectSet objectSet
           
protected  Properties properties
           
 
Constructor Summary
RI()
           
 
Method Summary
 void add(java.lang.String focusWord, java.lang.String contextWord, float weight)
           
 RISparseVector addNewWord(java.lang.String newWord)
           
 Properties getDefaultProperties()
           
 RISparseVector getIndex(java.lang.String string)
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 float[] getRepresentation(java.lang.String string)
           
 void normalizeRepresentationVectors()
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RI

public RI()
Method Detail

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