title: finding distance between synsets in wordnet
body: <p>I use Java API for wordnet searching(JAWS) for accessing wordnet from java . When i got to read a few papers about semantic similarity with java , they expect me to find the distance between two synsets (is a relationship is used in building the hierarchy). There is no specific method to find the distance between words in JAWS .</p>
  
  <p>Please tell me if there exists some method in java that gives the distance between two words </p>
  
  <pre><code>Example 
  
  apple -&gt; fruit-&gt; fruits and vegetables (2) 
  vegetables -&gt; fruits and vegetables (1)
  distance(apple,vegetable) = 3 
  </code></pre>
  
  <p>Is there a built in method that performs this function ? </p>