Re: Error using RUTA from Java

2015-05-21 Thread Peter Klügl
Hi, unfortunately, Ruta.createAnalysisEngineDescription() does not provide the functionality to create a valid descriptor for a multi-script analysis engine. That should be changed and/or the documentation should be extended/updated. Here are some option right now (not tested yet, but I will test

Re: Error using RUTA from Java

2015-05-21 Thread William Colen
Thank you, Peter. Maybe that is the case. I am not setting any parameter, as follows: TypeSystemDescription tsd = > TypeSystemDescriptionFactory.createTypeSystemDescription("MainTypeSystem"); > URL url = Resources.getResource("Main.ruta"); > String scriptText = Resources.toString(url, Charsets.UT

Re: Error using RUTA from Java

2015-05-21 Thread Peter Klügl
Hi, I must admit that I do not know the source of the problem yet. Either RutaParser.file_input() (or RutaEngine.loadScript/IS()) returns null, but this should cause some other exceptions. Or the linking of mentioned/imported script names in the ruta file does not match the names in the configura

Re: Error using RUTA from Java

2015-05-20 Thread William Colen
Thank you, Peter. I was using 2.2.1 and upgraded to 2.3.0 RC2 as you advised, but the error persists. Now I will post the complete stacktrace: Mai 20, 2015 6:56:23 PM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(417) GRAVE: Exception occurred org.

Re: Error using RUTA from Java

2015-05-20 Thread Peter Klügl
Hi, I assume that you use UIMA Ruta 2.2.1? Are there any prior exception? I had a similar problem, which should be fixed now. Could be related to the bugs reported in UIMA-4045 or UIMA-4046. Normally, I would assume that there is a syntax error in the additional script causing the module to b

Error using RUTA from Java

2015-05-20 Thread William Colen
Hello, We have a Main RUTA script that imports a few children scripts, as follows: PACKAGE cogroo.ruta; > TYPESYSTEM BaseTypeSystem; > IMPORT opennlp.uima.Token FROM TypeSystem AS cgToken; > IMPORT opennlp.uima.Sentence FROM TypeSystem AS cgSentence; > SCRIPT Crase; > SCRIPT Base; > Document{-> C