|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.PathSet
public class PathSet
A set that contains all of the paths between two words and phrases as well as the number of minimum length paths. This class is used to measure semantic distance.
The PathSet also contains the original strings before any morphological transformations of modifications of phrases These are contained in origWord1 and origWord2.
Constructor Summary | |
---|---|
PathSet()
Default constructor. |
|
PathSet(java.util.TreeSet<Path> pathSet)
Constructor that initialized this PathSet object with a PathSet. |
Method Summary | |
---|---|
void |
calculatePathAdjustment()
The pathAdjustment is a value between 0 and 2 It is the sum of the lengths of all paths, divided by the total number of paths. |
int |
compareTo(java.lang.Object other)
Compares two PathSets according to the length of the shortest path. |
java.util.TreeSet<Path> |
getAllPaths()
Returns all Paths in this PathSet. |
int |
getCTotal()
CTotal represents the number of paths of minimum length This value is used to break ties between words and phrases which have the same semantic distance value using edge-counting. |
int |
getMinLength()
Returns the length of the shortest Path in this PathSet. |
int |
getMinPathCount()
Returns the number of minimum length Paths in this PathSet. |
java.lang.String |
getOrigWord1()
Returns the original form of the first word or phrase in this PathSet. |
java.lang.String |
getOrigWord2()
Returns the original form of the second word or phrase in this PathSet. |
float |
getPathAdjustment()
returns the Path Adjustment. |
java.lang.String |
getPos1()
Returns the part-of-speech of the first word or phrase in this PathSet. |
java.lang.String |
getPos2()
Returns the part-of-speech of the second word or phrase in this PathSet. |
java.lang.String |
getWord1()
Returns the first word or phrase after the morphological transformations are applied in this PathSet. |
java.lang.String |
getWord2()
Returns the second word or phrase after the morphological transformations are applied in this PathSet. |
java.lang.String |
getWordPair()
Converts to a string representation the PathSet object - used for debugging. |
void |
setOrigWord1(java.lang.String word)
Sets the original form of the first word or phrase in this PathSet. |
void |
setOrigWord2(java.lang.String word)
Sets the original form of the second word or phrase in this PathSet. |
java.lang.String |
toString()
Converts to a string representation the PathSet object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PathSet()
public PathSet(java.util.TreeSet<Path> pathSet)
pathSet
- Method Detail |
---|
public void calculatePathAdjustment()
public int getCTotal()
public java.util.TreeSet<Path> getAllPaths()
public int getMinPathCount()
public int getMinLength()
public float getPathAdjustment()
public java.lang.String getWord1()
public java.lang.String getWord2()
public java.lang.String getPos1()
public java.lang.String getPos2()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public java.lang.String getWordPair()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getOrigWord1()
public void setOrigWord1(java.lang.String word)
word
- public java.lang.String getOrigWord2()
public void setOrigWord2(java.lang.String word)
word
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |