return Integer.MAX_VALUE;
Synset startSynset = start.getSense(1);
Synset endSynset = end.getSense(1);
RelationshipList list = RelationshipFinder.getInstance()
.findRelationships(startSynset, endSynset, type);
// System.out.println("Synonym relationship between \"" +
// start.getLemma() + "\" and \"" + end.getLemma() + "\":");
// for (Iterator itr = list.iterator(); itr.hasNext();)
// ((Relationship) itr.next()).getNodeList().print();
// if(!list.isEmpty())
// System.out.println("Depth: " + ((Relationship)
// list.get(0)).getDepth());
int res = list.size();
if (res > 0)
return list.size();
else
return Integer.MAX_VALUE;
} catch (Exception e) {
org.apache.commons.logging.LogFactory.getLog(WordNetBridge.class)
.error(e);