de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word
Class WordBase

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WordBase

public class WordBase
extends Object

Article in Wiktionary. See http://en.wiktionary.org/wiki/Wiktionary:Entry_layout_explained


Constructor Summary
WordBase(String _page_title, LanguageType wikt_lang, StringBuffer text)
          Parses the article text.
 
Method Summary
 WLanguage[] getAllLanguages()
          Gets all languages.
 String getPageTitle()
          Gets an article title in Wiktionary.
 String getRedirect()
          Gets a redirected page, i.e. target or destination page.
 boolean hasOnlyTemplatesWithoutDefinitions()
          True if there are template (e.g.
 boolean isEmpty()
          Word is empty if there are no recognized data in the parsed wiki text.
 boolean isRedirect()
          Checks is the entry a REDIRECT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordBase

public WordBase(String _page_title,
                LanguageType wikt_lang,
                StringBuffer text)
Parses the article text. Creates and stores parsed data to the word (WordBase) for the given Wiktionary (defined by wikt_lang language).

Method Detail

hasOnlyTemplatesWithoutDefinitions

public boolean hasOnlyTemplatesWithoutDefinitions()
True if there are template (e.g. {{form of|}}, {{plural of|}}), {{es-verb form of|}}) instead of definiton text (in enwikt).


getPageTitle

public String getPageTitle()
Gets an article title in Wiktionary.


getAllLanguages

public WLanguage[] getAllLanguages()
Gets all languages.


isRedirect

public boolean isRedirect()
Checks is the entry a REDIRECT.


getRedirect

public String getRedirect()
Gets a redirected page, i.e. target or destination page. It is null for usual entries.


isEmpty

public boolean isEmpty()
Word is empty if there are no recognized data in the parsed wiki text.



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