Constructor and Description |
---|
TagPluginDutchTagger() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getDisplayName()
Return a user-friendly name for this plugin that can be used in messages,
etc.
|
String |
getId()
Return a globally unique id for this plugin class.
|
String |
getInputFormat()
Get the name of the format this plugin can tag.
|
String |
getOutputFileName(String inputFileName)
Unfortunate side-effect of docIndexers requiring a filename to do their work.
|
String |
getOutputFormatIdentifier()
Get the name of the format this plugin tags into.
|
void |
init(Map<String,String> config)
Initializes the plugin, called once after the initial loading of the class.
|
boolean |
needsConfig()
Does this plugin require configuration parameters?
If not, the plugin will always be initialized.
|
void |
perform(Reader reader,
Writer writer)
Perform on a text file.
|
public boolean needsConfig()
Plugin
needsConfig
in interface Plugin
public void init(Map<String,String> config) throws PluginException
Plugin
init
in interface Plugin
config
- the config settings for this pluginPluginException
public void perform(Reader reader, Writer writer) throws PluginException
TagPlugin
perform
in interface TagPlugin
reader
- input. Should not be closed by the implementation.writer
- output. Should not be closed by the implementation.PluginException
public String getInputFormat()
TagPlugin
ConvertPlugin.getOutputFormat()
.getInputFormat
in interface TagPlugin
public String getOutputFormatIdentifier()
TagPlugin
DocIndexerFactory.Format
so that the tagged
data can then be indexed by a DocIndexer
getOutputFormatIdentifier
in interface TagPlugin
public String getOutputFileName(String inputFileName)
TagPlugin
getOutputFileName
in interface TagPlugin
TagPlugin.getOutputFormatIdentifier()
public String getId()
Plugin
public String getDisplayName()
Plugin
getDisplayName
in interface Plugin
public String getDescription()
getDescription
in interface Plugin
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.