/** * Finds the asymmetric relationship(s) between two words. A relationship is * asymmetric if its type is asymmetric (i.e. it's not its own inverse). */ private RelationshipList findAsymmetricRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws JWNLException { return findAsymmetricRelationships(sourceSynset, targetSynset, type, DEFAULT_ASYMMETRIC_SEARCH_DEPTH); }
/** * Find all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var>. * This method creates a symmetric or asymmetric relationship based on whether <var>type</var> is symmetric. */ public RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type) : findAsymmetricRelationships(sourceSynset, targetSynset, type); }
/** * Find all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * to depth <var>depth</var>. This method creates a symmetric or asymmetric relationship based on * whether <var>type</var> is symmetric. */ public RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type, depth) : findAsymmetricRelationships(sourceSynset, targetSynset, type, depth); }