de.tudarmstadt.ukp.jwktl.parser.wikisaurus
Class WikisaurusEntry

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.wikisaurus.WikisaurusEntry

public class WikisaurusEntry
extends Object

Intermediate representation of Wikisaurus articles used by the WikisaurusArticleParser. The information stored in this class will be transfered to the main article structure (i.e., the IWiktionarySenses) if requested.

Author:
Christian M. Meyer

Constructor Summary
WikisaurusEntry(String title, PartOfSpeech partOfSpeech, ILanguage language, String senseDefinition)
          Instanciates a new entry with the given title, part of speech, language, and sense definition (optional)
 
Method Summary
 void addRelation(String target, String targetSense, RelationType type)
          Adds a new WiktionaryRelation to this entry based on the given parameters.
 ILanguage getLanguage()
          Returns the word language.
 PartOfSpeech getPartOfSpeech()
          Returns the part of speech tag.
 Set<WiktionaryRelation> getRelations()
          Returns the semantic relations.
 String getSenseDefinition()
          Returns the sense definition.
 String getTitle()
          Returns the page title.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WikisaurusEntry

public WikisaurusEntry(String title,
                       PartOfSpeech partOfSpeech,
                       ILanguage language,
                       String senseDefinition)
Instanciates a new entry with the given title, part of speech, language, and sense definition (optional)

Method Detail

addRelation

public void addRelation(String target,
                        String targetSense,
                        RelationType type)
Adds a new WiktionaryRelation to this entry based on the given parameters.


getTitle

public String getTitle()
Returns the page title.


getPartOfSpeech

public PartOfSpeech getPartOfSpeech()
Returns the part of speech tag.


getLanguage

public ILanguage getLanguage()
Returns the word language.


getSenseDefinition

public String getSenseDefinition()
Returns the sense definition.


getRelations

public Set<WiktionaryRelation> getRelations()
Returns the semantic relations.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.