private char getRelationFromSenseGlossMatchers(List<ISense> sourceSenses, List<ISense> targetSenses) throws MatcherLibraryException {
        char relation = IMappingElement.IDK;
        if (0 < senseGlossMatchers.size()) {
            for (ISense sourceSense : sourceSenses) {
                //noinspection LoopStatementThatDoesntLoop
                for (ISense targetSense : targetSenses) {
                    int k = 0;
                    while ((relation == IMappingElement.IDK) && (k < senseGlossMatchers.size())) {
                        relation = senseGlossMatchers.get(k).match(sourceSense, targetSense);
                        k++;
                    }
                    return relation;
                }
            }
        }
        return relation;
    }
private char getRelationFromSenseGlossMatchers ( List < ISense > sourceSenses , List < ISense > targetSenses ) throws MatcherLibraryException { char relation = IMappingElement . IDK ; if ( 0 < senseGlossMatchers . size ( ) ) { for ( ISense sourceSense : sourceSenses ) { for ( ISense targetSense : targetSenses ) { int k = 0 ; while ( ( relation == IMappingElement . IDK ) && ( k < senseGlossMatchers . size ( ) ) ) { relation = senseGlossMatchers . get ( k ) . match ( sourceSense , targetSense ) ; k ++ ; } return relation ; } } } return relation ; }
Returns semantic relation between two sets of senses by WordNet sense-based matchers.

@param sourceSenses source senses
@param targetSenses target senses
@return semantic relation between two sets of senses
@throws MatcherLibraryException MatcherLibraryException