This section describes the basic structure of a standalone application using the API. See the source referenced in Java API Examples. Typically, your application takes the following actions:
Instantiate an EDKEngine
object.
TIP: Micro Focus recommends that you program against the TextExtractionEngine
interface to instantiate EDKEngine
.
You can create an engine from an appropriate configuration file and go to step 2.
Alternatively, you can create the engine without a configuration. In this case you must then also:
Set the license key.
Configure the engine, load the grammars, and select entities.
Instantiate an EDKSession
object and associate it with the engine.
TIP: Micro Focus recommends that you program against the TextExtractionSession
interface to instantiate EDKSession
.
Execute a for each
loop to obtain an EDKMatch
object for each match in a session.
NOTE: If you create your EDKEngine
from a configuration file that includes post-processing tasks, the post-processing tasks automatically run as part of EDKMatch
and you do not need to run them separately.
|