public class RUWiktionaryEntryParser extends WiktionaryEntryParser
IWiktionaryEntryParser interface for
parsing the contents of article pages from the Russian Wiktionary.
The entry parser is delegate its calls to the Wikokit API.COMMENT_PATTERN, entryId, handlers, IMAGE_PATTERN, language, redirectTemplate, REFERENCES_PATTERN| Constructor and Description |
|---|
RUWiktionaryEntryParser()
Initializes the Russian entry parser.
|
| Modifier and Type | Method and Description |
|---|---|
protected ParsingContext |
createParsingContext(WiktionaryPage page) |
boolean |
isStartOfBlock(String line)
Hotspot for deciding if the given line is a potential start of a new
article constituent.
|
void |
parse(WiktionaryPage page,
String text)
Creates Wiktionary word entry instances from the provided text, and
adds them to the given article page.
|
IBlockHandler |
selectHandler(String line)
Find a handler that is willing to handle the given line.
|
checkForRedirect, getLanguage, registerpublic RUWiktionaryEntryParser()
public void parse(WiktionaryPage page, String text)
IWiktionaryEntryParserparse in interface IWiktionaryEntryParserparse in class WiktionaryEntryParserprotected ParsingContext createParsingContext(WiktionaryPage page)
createParsingContext in class WiktionaryEntryParserpublic IBlockHandler selectHandler(String line)
WiktionaryEntryParserselectHandler in class WiktionaryEntryParserpublic boolean isStartOfBlock(String line)
WiktionaryEntryParserisStartOfBlock in class WiktionaryEntryParserCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.