|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.pado.dv.SemanticSpaceHash
public class SemanticSpaceHash
This is a naive hash-based implementation of the SemanticSpace interface. Since it only needs the space of filled cells, and since most semantic spaces are very sparse, this implementation usually saves much memory over the SemanticSpaceArray implementation. However, each access involves two hashmap operations; therefore, it is slower .
| Method Summary | |
|---|---|
boolean |
containsBE(java.lang.String b)
Determines if the basis element b is used for representation in the semantic space. |
boolean |
containsTarget(java.lang.String t)
Determines if the target t is represented in the semantic space. |
void |
increaseCount(java.lang.String target,
java.lang.String be,
double value)
Increases the co-occurrence count for a given target and basis element combination. |
java.lang.String |
toString()
Returns a string representation of the semantic space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void increaseCount(java.lang.String target,
java.lang.String be,
double value)
increaseCount in interface SemanticSpacepublic boolean containsTarget(java.lang.String t)
containsTarget in interface SemanticSpacepublic boolean containsBE(java.lang.String b)
SemanticSpace
containsBE in interface SemanticSpacepublic java.lang.String toString()
toString in interface SemanticSpacetoString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||