de.tuebingen.uni.sfs.germanet.api
Class IliRecord

java.lang.Object
  extended by de.tuebingen.uni.sfs.germanet.api.IliRecord

public class IliRecord
extends java.lang.Object

An IliRecord consists of a German word, corresponding English word (or words), and a relation connecting them. Methods are provided to get each of the attributes.

Other variables include IDs from Princeton WordNet (PWN) 2.0 and 3.0, as well as English paraphrases from PWN 2.0.


Method Summary
protected  void addEnglishSynonym(java.lang.String synonym)
          Adds an English synonym to this IliRecord.
 java.util.List<java.lang.String> getEnglishSynonyms()
          Returns a List of this IliRecord's English synonyms from PWN 2.0.
 EwnRel getEwnRelation()
          Returns the EuroWordNet cross-language relation of this IliRecord.
 int getLexUnitId()
          Returns the identifier of the LexUnit corresponding to this IliRecord.
 java.lang.String getPwn20Id()
          Returns the identifier of the corresponding English word from PWN 2.0.
 java.lang.String getPwn20paraphrase()
          Returns the paraphrase for this word from PWN 2.0.
 java.lang.String getPwn30Id()
          Returns the identifier of the corresponding English word from PWN 3.0.
 java.lang.String getPwnWord()
          Returns the corresponding English word from PWN 2.0 (can be null, in which case seegetEnglishSynonyms()).
 java.lang.String getSource()
          Returns the source of the IliRecord.
 java.lang.String toString()
          Returns a String representation of this IliRecord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addEnglishSynonym

protected void addEnglishSynonym(java.lang.String synonym)
Adds an English synonym to this IliRecord.

Parameters:
synonym - the English synonym to add

getLexUnitId

public int getLexUnitId()
Returns the identifier of the LexUnit corresponding to this IliRecord.

Returns:
the identifier of the LexUnit

getEwnRelation

public EwnRel getEwnRelation()
Returns the EuroWordNet cross-language relation of this IliRecord.

Returns:
the EuroWordNet cross-language relation of this IliRecord

getPwnWord

public java.lang.String getPwnWord()
Returns the corresponding English word from PWN 2.0 (can be null, in which case seegetEnglishSynonyms()).

Returns:
the corresponding English word from PWN 2.0

getPwn20Id

public java.lang.String getPwn20Id()
Returns the identifier of the corresponding English word from PWN 2.0.

Returns:
the identifier of the corresponding English word from PWN 2.0

getPwn30Id

public java.lang.String getPwn30Id()
Returns the identifier of the corresponding English word from PWN 3.0.

Returns:
the identifier of the corresponding English word from PWN 3.0

getPwn20paraphrase

public java.lang.String getPwn20paraphrase()
Returns the paraphrase for this word from PWN 2.0.

Returns:
the paraphrase for this word from PWN 2.0

getSource

public java.lang.String getSource()
Returns the source of the IliRecord.

Returns:
the source of the IliRecord

getEnglishSynonyms

public java.util.List<java.lang.String> getEnglishSynonyms()
Returns a List of this IliRecord's English synonyms from PWN 2.0.

Returns:
a List of this IliRecord's English synonyms from PWN 2.0

toString

public java.lang.String toString()
Returns a String representation of this IliRecord.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this IliRecord