WordNetSemanticSimilarity.WordNetTreatment
Class TopologicalParameters

java.lang.Object
  extended by WordNetSemanticSimilarity.WordNetTreatment.TopologicalParameters

public class TopologicalParameters
extends java.lang.Object


Constructor Summary
TopologicalParameters(DataBaseConnection dbc, WordNetVersion version, net.sf.extjwnl.data.POS pos)
          Constructor of a TopologicalParameters instance to access to topological paramters of WordNet synsets.
 
Method Summary
 double getDepth(long id, Depth depth)
          Get the depth of a synset into the WordNet "is a" taxonomy according to the Depth computing way.
 java.util.Vector<java.lang.Long> getHypernyms(long syn)
          Get the hypernyms (ancestors) of a synset including itself.
 long getLCS(long syn1, long syn2)
          Get the Lowest Common Subsumer (LCS) between two synsets.
 double getMaxDepth(Depth depth)
          Get the maximum depth according to the Depth computing way.
 double getMaxHypo(Hyponyms Hypo)
          Get the maximum hyponyms value according to the Hyponyms computing way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopologicalParameters

public TopologicalParameters(DataBaseConnection dbc,
                             WordNetVersion version,
                             net.sf.extjwnl.data.POS pos)
Constructor of a TopologicalParameters instance to access to topological paramters of WordNet synsets.

Parameters:
dbc -
version -
pos -
Method Detail

getHypernyms

public java.util.Vector<java.lang.Long> getHypernyms(long syn)
                                              throws java.sql.SQLException
Get the hypernyms (ancestors) of a synset including itself.

Parameters:
syn -
Throws:
java.sql.SQLException

getLCS

public long getLCS(long syn1,
                   long syn2)
            throws java.sql.SQLException
Get the Lowest Common Subsumer (LCS) between two synsets.

Parameters:
syn1 -
syn2 -
Throws:
java.sql.SQLException

getDepth

public double getDepth(long id,
                       Depth depth)
                throws java.sql.SQLException
Get the depth of a synset into the WordNet "is a" taxonomy according to the Depth computing way.

Parameters:
id -
depth -
Throws:
java.sql.SQLException

getMaxDepth

public double getMaxDepth(Depth depth)
                   throws java.sql.SQLException
Get the maximum depth according to the Depth computing way.

Parameters:
depth -
Throws:
java.sql.SQLException

getMaxHypo

public double getMaxHypo(Hyponyms Hypo)
                  throws java.sql.SQLException
Get the maximum hyponyms value according to the Hyponyms computing way.

Parameters:
Hypo -
Throws:
java.sql.SQLException