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 ; }
Returns semantic relation between two sets of senses by WordNet sense - based matchers .