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)
IWordFormHandler
IWordFormHandler.getWordForms()
once all lines have been parsed.parse
in interface IWordFormHandler
line
- a line of wikitextpublic List<IWiktionaryWordForm> getWordForms()
getWordForms
in interface IWordFormHandler
public List<GrammaticalGender> getGenders()
getGenders
in interface IWordFormHandler
public String handle(TemplateParser.Template template)
TemplateParser.ITemplateHandler
TemplateParser
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.ITemplateHandler
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.