it.unitn.disi.smatch.oracles
Interface ILinguisticOracle

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
WordNet

public interface ILinguisticOracle
extends IConfigurable

Interface to Linguistic Oracles, such as WordNet.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk,

Method Summary
 java.lang.String getBaseForm(java.lang.String derivation)
          Returns base form (lemma) of a word.
 ISynset getISynset(ISense sense)
          Returns a synset given its id.
 java.util.List<ISense> getSenses(java.lang.String word)
          Returns all senses of a word.
 boolean isEqual(java.lang.String str1, java.lang.String str2)
          Checks if lemmas of two strings are equal (e.
 
Methods inherited from interface it.unitn.disi.smatch.components.IConfigurable
getProperties, setProperties, setProperties
 

Method Detail

getISynset

ISynset getISynset(ISense sense)
                   throws LinguisticOracleException
Returns a synset given its id.

Parameters:
sense - sense
Returns:
synset
Throws:
LinguisticOracleException - LinguisticOracleException

isEqual

boolean isEqual(java.lang.String str1,
                java.lang.String str2)
                throws LinguisticOracleException
Checks if lemmas of two strings are equal (e. g. the string are the same modulo inflections).

Parameters:
str1 - source string
str2 - target string
Returns:
true if lemmas are equal
Throws:
LinguisticOracleException - LinguisticOracleException

getSenses

java.util.List<ISense> getSenses(java.lang.String word)
                                 throws LinguisticOracleException
Returns all senses of a word.

Parameters:
word - the word to which the sense will be retrieve
Returns:
word senses
Throws:
LinguisticOracleException - LinguisticOracleException

getBaseForm

java.lang.String getBaseForm(java.lang.String derivation)
                             throws LinguisticOracleException
Returns base form (lemma) of a word.

Parameters:
derivation - the word to get a base form for
Returns:
base form of a derivation
Throws:
LinguisticOracleException - LinguisticOracleException


© 2010-2011 Knowdive @ DISI