public class ENNonEngWordFormHandler extends Object implements IWordFormHandler, TemplateParser.ITemplateHandler
| Constructor and Description |
|---|
ENNonEngWordFormHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<GrammaticalGender> |
getGenders() |
List<IWiktionaryWordForm> |
getWordForms() |
String |
handle(TemplateParser.Template template)
Invoked by the
TemplateParser for every template that occurs
in a text. |
boolean |
parse(String line)
Start parsing the specified text for inflected word forms.
|
public boolean parse(String line)
IWordFormHandlerIWordFormHandler.getWordForms()
once all lines have been parsed.parse in interface IWordFormHandlerline - a line of wikitextpublic List<IWiktionaryWordForm> getWordForms()
getWordForms in interface IWordFormHandlerpublic List<GrammaticalGender> getGenders()
getGenders in interface IWordFormHandlerpublic String handle(TemplateParser.Template template)
TemplateParser.ITemplateHandlerTemplateParser for every template that occurs
in a text. The parser replaces the template by the result of this
method. If null is returned, no substitution is made,
but the original template string remains in the text.handle in interface TemplateParser.ITemplateHandlerCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.