de.tudarmstadt.ukp.jwktl.parser.en.components
Class EnGlossEntry

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.en.components.EnGlossEntry

public class EnGlossEntry
extends Object

Helper class for storing parsed sense definitions, examples, and quotations. Instances of this class only exist while parsing a dump file; they will be converted into proper IWiktionarySense as soon as the meaning constituent has been completely parsed.

Author:
Christian M. Meyer, Lizhen Qu

Constructor Summary
EnGlossEntry(String gloss)
          Initializes the entry with the specified definition.
 
Method Summary
 void addExample(String example)
          Add the specified example sentence to the list.
 void addQuotation(Quotation quotation)
          Add specified quotation to the list.
 void appendExample(String example)
          Append the specified example sentence to the last example sentences.
 String getDefinition()
          Returns the sense definition.
 List<String> getExampleList()
          Returns the list of example sentences.
 List<Quotation> getQuotations()
          Returns the list of quotations.
 void setGloss(String definition)
          Replace the sense definition with the specified one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnGlossEntry

public EnGlossEntry(String gloss)
Initializes the entry with the specified definition.

Method Detail

getExampleList

public List<String> getExampleList()
Returns the list of example sentences.


addExample

public void addExample(String example)
Add the specified example sentence to the list.


appendExample

public void appendExample(String example)
Append the specified example sentence to the last example sentences. The two examples are combined with a space and then trimmed.


addQuotation

public void addQuotation(Quotation quotation)
Add specified quotation to the list.


getQuotations

public List<Quotation> getQuotations()
Returns the list of quotations.


getDefinition

public String getDefinition()
Returns the sense definition.


setGloss

public void setGloss(String definition)
Replace the sense definition with the specified one.



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