All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unitn.disi.smatch.oracles.ISenseMatcher Maven / Gradle / Ivy

The newest version!
package it.unitn.disi.smatch.oracles;

import it.unitn.disi.common.components.IConfigurable;
import it.unitn.disi.smatch.data.ling.ISense;

import java.util.List;

/**
 * An interface to sense matchers.
 *
 * @author Mikalai Yatskevich [email protected]
 * @author 
 */
public interface ISenseMatcher extends IConfigurable {

    /**
     * Returns semantic relation holding between two sets of senses.
     *
     * @param sourceSenses source set of senses
     * @param targetSenses target set of senses
     * @return a relation
     * @throws SenseMatcherException SenseMatcherException
     */
    public char getRelation(List sourceSenses, List targetSenses) throws SenseMatcherException;

    /**
     * Checks whether the source is more general than target.
     *
     * @param source source sense
     * @param target target sense
     * @return whether relation holds
     * @throws SenseMatcherException SenseMatcherException
     */
    public boolean isSourceMoreGeneralThanTarget(ISense source, ISense target) throws SenseMatcherException;

    /**
     * Checks whether the source is less general than target.
     *
     * @param source source sense
     * @param target target sense
     * @return whether relation holds
     * @throws SenseMatcherException SenseMatcherException
     */
    public boolean isSourceLessGeneralThanTarget(ISense source, ISense target) throws SenseMatcherException;

    /**
     * Checks whether the source is a synonym of the target.
     *
     * @param source source sense
     * @param target target sense
     * @return whether relation holds
     * @throws SenseMatcherException SenseMatcherException
     */
    public boolean isSourceSynonymTarget(ISense source, ISense target) throws SenseMatcherException;

    /**
     * Checks whether the source is disjoint with the target.
     *
     * @param source source sense
     * @param target target sense
     * @return whether relation holds
     * @throws SenseMatcherException SenseMatcherException
     */
    public boolean isSourceOppositeToTarget(ISense source, ISense target) throws SenseMatcherException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy