uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl <peter.klu...@averbis.com>
Subject Re: how to set scriptPath
Date Tue, 16 Apr 2019 07:27:04 GMT

I assume that you use a simple Ruta project (compared to a maven project
with the ruta-maven-plugin)?

Normally, you should not need to set the scriptPaths configuration
parameter as it is set automatically by the builder to the absolute
paths to the "script" folder of your ruta project.

The file "descriptor/BasicEngine.xml" is only the template for the
generated descriptors for your Ruta scripts. Thus, is isn't used for
launching scripts.

Can you check the parameter value of the descriptor of the Ruta script
you want to run?

If you want to use an additional script, you can simply import it in
your script (using the correct package with "SCRIPT" and then execute it
with "CALL"). The Workbench should take care of all the configuration. 

In any case this works not as expected, here are the two configuration
parameter values you would need to set:



Please mind the "s" in scriptPaths. The values can be relative, but the
to datapath, which can be set in the project preferences.

I hope that helps.



Am 15.04.2019 um 22:46 schrieb Nikolai Krot:
> Hi,
> In a ruta rule script, I want to include and run another script that is
> located in a subdirectory w.r.t to the location of the current script. From
> reading the documentation, it seems that the variable *scriptPath* needs to
> be set to that subdirectory for *SCRIPT* directive to work. Or am I wrong?
> I can not figure out how to set *scriptPath*. One possibility would be to
> add this configuration to *descriptor/BasicEngine.xml* file. Unfortunately,
> I can not find any example of how to accomplish it. Should it be like below?
> <nameValuePair>
>>   <name>scriptPath</name>
>>    <value>
>>         <string>path/to/subdirectory</string>
>>    </value>
>> </nameValuePair>
> What if I want to set several path values?
> Do values need to be relative to the project root directory?
> Thank you in advance,
> Nikolai
Dr. Peter Klügl
R&D Text Mining/Machine Learning

Averbis GmbH
Salzstr. 15
79098 Freiburg

Fon: +49 761 708 394 0
Fax: +49 761 708 394 10
Email: peter.kluegl@averbis.com
Web: https://averbis.com

Headquarters: Freiburg im Breisgau
Register Court: Amtsgericht Freiburg im Breisgau, HRB 701080
Managing Directors: Dr. med. Philipp Daumke, Dr. Kornél Markó

View raw message