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, register
public RUWiktionaryEntryParser()
public void parse(WiktionaryPage page, String text)
IWiktionaryEntryParser
parse
in interface IWiktionaryEntryParser
parse
in class WiktionaryEntryParser
protected ParsingContext createParsingContext(WiktionaryPage page)
createParsingContext
in class WiktionaryEntryParser
public IBlockHandler selectHandler(String line)
WiktionaryEntryParser
selectHandler
in class WiktionaryEntryParser
public boolean isStartOfBlock(String line)
WiktionaryEntryParser
isStartOfBlock
in class WiktionaryEntryParser
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.