public interface InformationExtractionParser
Modifier and Type | Field and Description |
---|---|
static String |
REGEXRULE_MARKER
The marker to use for RegexRules processed by some parser engines (e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(InformationExtractionParserSpecification spec)
Initialize this instance.
|
void |
parse(InformationExtraction ext)
Performs a parse of the target InformationExtraction,
without a handler context.
|
void |
parse(InformationExtraction ext,
InformationExtractionHandlerDispatcher handler)
Performs a parse of the target InformationExtraction,
with a handler context.
|
static final String REGEXRULE_MARKER
void initialize(InformationExtractionParserSpecification spec) throws IfsException
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be subsequently used concurrently by multiple threads and sessions. A session can be retrieved from the specification object, but it must not be cached. The specification also has the implementation and instance specific parameters which should be cached in a session independent way.
spec
- The specification for a given implementation.IfsException
- if the operation fails.void parse(InformationExtraction ext) throws IfsException
ext
- the target InformationExtractionIfsException
- if the operation fails.void parse(InformationExtraction ext, InformationExtractionHandlerDispatcher handler) throws IfsException
ext
- the target InformationExtractionhandler
- the handler requesting the parse (can be null)IfsException
- if the operation fails.Copyright © 2023. All rights reserved.