|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.wvtool.config.WVTConfiguration
public class WVTConfiguration
WVTool Configuration. The configuration consists of a set of rules that determine which components to use for each step, dependend on given information about the document. This allows to dynamically choose, e.g. a tokenizer, depending whether the document was read from PDF or from plain text. Rules have no special structure, despite that they take document information as input and return an Object representing the component to be used. A shortcut for cases where always the same component is used, independently of the document, is the WVTConfigurationFact. Configuration rules can be provided in three ways: 1. A simple standard configuration can be used 2. The configuration can be read from a stream (not yet implemented) 3. Setter Methods can be used to create the configuration manually from Java code
Field Summary | |
---|---|
private java.util.Map |
ruleSet
data structure to store the rules for the individual steps |
static java.lang.String |
STEP_CHAR_MAPPER
|
static java.lang.String |
STEP_INPUT_FILTER
|
static java.lang.String |
STEP_LOADER
|
static java.lang.String |
STEP_OUTPUT
|
static java.lang.String |
STEP_STEMMER
|
static java.lang.String |
STEP_TOKENIZER
|
static java.lang.String |
STEP_VECTOR_CREATION
|
static java.lang.String |
STEP_WORDFILTER
|
Constructor Summary | |
---|---|
WVTConfiguration()
Creates a new instance of WVTConfiguration, setting up a standard configuration |
|
WVTConfiguration(java.io.Reader in)
Creates a new instance of WVTConfiguration by reading a configuration from a stream. |
Method Summary | |
---|---|
java.lang.Object |
getComponentForStep(java.lang.String step,
WVTDocumentInfo info)
Get the object to use in a given step according to given document informations. |
void |
setConfigurationRule(java.lang.String step,
WVTConfigurationRule rule)
Set a rule for a given step. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STEP_INPUT_FILTER
public static final java.lang.String STEP_CHAR_MAPPER
public static final java.lang.String STEP_LOADER
public static final java.lang.String STEP_TOKENIZER
public static final java.lang.String STEP_WORDFILTER
public static final java.lang.String STEP_STEMMER
public static final java.lang.String STEP_VECTOR_CREATION
public static final java.lang.String STEP_OUTPUT
private java.util.Map ruleSet
Constructor Detail |
---|
public WVTConfiguration(java.io.Reader in)
in
- the stream, from which to read the configurationpublic WVTConfiguration()
Method Detail |
---|
public final void setConfigurationRule(java.lang.String step, WVTConfigurationRule rule)
step
- the name of the steprule
- the rule for this steppublic final java.lang.Object getComponentForStep(java.lang.String step, WVTDocumentInfo info)
step
- the name of the stepinfo
- the document information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |