Sorry, that was the wrong extension... it should read:

= AnalysisEngineFactory.createEngine(RutaEngine.class, RutaEngine.PARAM_ADDITIONAL_EXTENSIONS, new String[]{BooleanOperationsExtension.class.getName()});

btw its better to create a description first, and then the analysis engine.

Best,

Peter

Am 08.09.2016 um 13:50 schrieb Peter Klügl:
Hi,


what is the content of line 28 in your script? I assume it's the line
with "equalsIgnoreCase", right?


How do you create the analysis engine for your ruta script? I assume
that you use something like:


AnalysisEngineFactory.createEngineDescription(RutaEngine.class, ...)


Do you set values for the configuration parameters (the "..." part),
especially the configuration parameter "additionalExtensions"?


The values for this configurtation parameter are normally set
automatically by the Workbench or by the ruta-maven-plugin. If you use
plain uimaFIT to create your analysis engine you need to specify the
extensions by yourself.

Something like:


AnalysisEngineFactory.createEngineDescription(RutaEngine.class,
RutaEngine.PARAM_ADDITIONAL_EXTENSIONS, new
String[]{StringOperationsExtension.class.getName()});


should do the trick. You can also take a look at the analysis engine
descriptors in your ruta project, which extensions are configured
automatically.


Best,


Peter



Reply via email to