public class WiktionaryFormatter extends Object
Constructor and Description |
---|
WiktionaryFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
formatEntry(IWiktionaryEntry entry)
Returns a string representation of the given entry using separate
prefixed lines for each information type.
|
String |
formatHeader(IWiktionaryEntry entry)
Returns the entry key, word, word language, and part of speech
of the given entry.
|
String |
formatHeader(IWiktionaryPage page)
Returns the ID and the title of the given page.
|
String |
formatHeader(IWiktionarySense sense)
Returns the sense key, word, sense index, and definition of
the given word sense.
|
protected static String |
formatLanguage(ILanguage language) |
String |
formatPage(IWiktionaryPage page,
ILanguage... languages)
Returns a string representation of the given page using separate
prefixed lines for each information type.
|
String |
formatSense(IWiktionarySense sense)
Returns a string representation of the given word sense using separate
prefixed lines for each information type.
|
static WiktionaryFormatter |
instance()
Returns the static singleton reference.
|
public static WiktionaryFormatter instance()
public String formatHeader(IWiktionaryPage page)
public String formatHeader(IWiktionaryEntry entry)
public String formatHeader(IWiktionarySense sense)
public String formatPage(IWiktionaryPage page, ILanguage... languages)
public String formatEntry(IWiktionaryEntry entry)
public String formatSense(IWiktionarySense sense)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.