Renaud Richardet | 21 Aug 15:31 2014
Picon

Ruta-server to easily deploy Apache RUTA projects as web services

Thanks Alexandre and Peter for your inputs,

In the end I think I will use the Annotation Testing view.

On a different note, I just created a small project to expose Apache RUTA
projects as web services:
http://renaud.github.io/easily-deploying-apache-ruta-projects-as-web-services.html

Let me know if you would be interested in integrating it into the RUTA
codebase. It's basically 3 java classes and 1 config file.

Best, Renaud

On Tue, Aug 19, 2014 at 9:59 AM, Peter Kl├╝gl <pkluegl@...>
wrote:

> Hi,
>
> in addition to alexandre's reply:
>
> We normally use the Annotation Testing view in the Ruta Workbench for
> only testing the functionality of rules for an application (not the ruta
> implementation), but view builts on xmi and supports no text specification.
>
> If you implement something, consider to contribute it :-)
>
> Best,
>
> Peter
>
(Continue reading)

Swirl | 20 Aug 08:04 2014
Picon

Uima AS out of memory

Hi,
I have deployed a AE onto a Uima AS node. 
But when I use it to analyse some documents, i got OutOfMemoryError: Java heap 
space.
I know that the AE is taking large amount of memory due to it loading many 
resources.

How can I increase the memory allocated to it in the Uima AS so that I can 
avoid the error?

Thanks.

Renaud Richardet | 18 Aug 23:30 2014
Picon

Ruta - best practices for unit tests?

Hello,

What are best practices for writing unit tests for Ruta?

Ideally, I would like to have 1) tests that can be run on the command line
(so as to automate them in Jenkins), and 2) where input and expected output
can be edited in a text editor (meaning: not xmi's or java code).

For 1), I was thinking about writing a script to automate testing
For 2), I was about to write the expected output in a simple xml or json
format, but if something already exists, that would be great.

Thanks, Renaud
Alexandre Patry | 7 Aug 17:37 2014

Loading a resource from the classpath

Hi,

I would like to locate a resource in the classpath, something along the 
lines of:

<externalResource>
   <name>LocationDictionary</name>
   <description>Dictionary of locations</description>
   <fileResourceSpecifier>
     <!-- Search this file in the classpath instead of the filesystem -->
     <fileUrl>path/in/jar/location-dictionary.xml</fileUrl>
   </fileResourceSpecifier>
   <implementationName>org.apache.uima.conceptMapper.support.dictionaryResource.DictionaryResource_impl</implementationName>
</externalResource>

Is it possible with existing resource specifiers or do I have to write 
my own and use a CustomResourceSpecifier?

Thanks!

Alexandre

--

-- 
Alexandre Patry, Ph.D
Chercheur Principal / Principal Researcher
http://KeaText.com

shreya | 6 Aug 07:33 2014
Picon

uima concept mapper : multi threading issue

Hi,
I am using UIMA for annotating some documents using Concept Mapper. I have 
built the dictionaries and configured it to our requirements. It gives 
expected results in case of single threaded requests.
However in multithreaded environment, it gives exception in the concept 
mapper add on code, giving blank result for some documents.

Exception:
Caused by: 
org.apache.uima.analysis_engine.annotator.AnnotatorProcessException: Trying 
to access value of feature  as "uima.cas.FSArray", but range of feature is 
"uima.cas.FSArray".

Is concept mapper add on thread safe ?

reshu.agarwal | 31 Jul 12:47 2014

is DUCC having UIMA AS remote Analysis Engine functionality for Deployment descripter?


Hi,

Can we deploy a analysis Engine separately and use UIMA AS remote 
Analysis Engine functionality for Deployment Descripter(DD) in 
Submitting a job?

As there is a functionality in UIMA AS that we can deploy analysis 
engine remotely and then use it into DD. I want to have same 
functionality in DUCC.\

Please help me. If this work it will help me a lot.

Thanks in advance

--

-- 

Reshu Agarwal

Swirl | 31 Jul 03:08 2014
Picon

Deploy entire uima as service in multiple nodes

Hi,
I am trying to use Uima AS to deploy one of my UIMA Aggregate AE.
I wish to deploy it as a Uima AS Primitive, i.e. I do not need the delegates 
of this AE to be scaled out. Instead I just want to scale out the Uima 
aggregate AE only. I want to deploy the AE in multiple nodes.

So far the documentation I've read all talked about scaling out the delegates 
of a Uima Aggregate remotely (effectively turning the Uima Aggregate into a 
Uima AS Aggregate). But I cant find any guide on how to deploy a Uima 
Aggregate as AS services remotely, on multiple nodes and the way to invoke 
these services.

Egbert van der Wal | 28 Jul 17:46 2014
Picon

UIMA AS NullPointerException in CasDefinition constructor

Hi,

 

I'm trying to convert an existing and functional UIMA pipeline to a UIMA AS pipeline.

 

I'm getting there, I created deployment descriptors for the annotators and when running my application all individual annotators are launched correctly. The composite analysis engine also loads fine but I'm getting a NullPointerException when calling initialize(deployCtx) on the UimaAsEngine on line 66. See the attached text document for the full exception.

 

 

I found a similar issue in the bug tracker which was fixed in UIMA AS 2.3:

 

https://issues.apache.org/jira/browse/UIMA-1376

 

But this seems to arise in mergeTypeSystem and this does not seem to be the case in my situation. The line number is the same however.

 

Any clues on where I should look for the solution? Are my descriptors faulty? Is the Java code faulty? Or is this a bug in UIMA AS 2.4.0? How can I debug this issue?

 

Thanks,

 

Egbert

 

 

Jul 28, 2014 5:10:24 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl setupConnection
INFO: UIMA AS Client Created Shared Connection To Broker: tcp://localhost:61616
Jul 28, 2014 5:10:24 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl initializeProducer
INFO: Initializing JMS Message Producer. Broker: tcp://localhost:61616 Queue Name: SpotterQueue
Jul 28, 2014 5:10:24 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl initializeConsumer
INFO: Initializing JMS Message Consumer. Broker: tcp://localhost:61616 Queue Name: ID:Idefix-51211-1406560187218-0:51:1
Jul 28, 2014 5:10:24 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl notifyOnInitializationFailure
WARNING: Top Level Controller Initialization Exception.
java.lang.NullPointerException
        at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
        at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:95)
        at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:198)
        at org.apache.uima.util.CasPool.fillPool(CasPool.java:315)
        at org.apache.uima.util.CasPool.<init>(CasPool.java:187)
        at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:176)
        at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:153)
        at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:56)
        at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:97)
        at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.initialize(BaseUIMAAsynchronousEngine_impl.java:765)
        at nl.novay.keywordSpotter.KeywordSpotterAS.initializeEngine(KeywordSpotterAS.java:576)
        at nl.novay.keywordSpotter.KeywordSpotterAS.run(KeywordSpotterAS.java:507)
        at nl.novay.keywordSpotter.KeywordSpotterAS.main(KeywordSpotterAS.java:374)

org.apache.uima.resource.ResourceInitializationException
        at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.initialize(BaseUIMAAsynchronousEngine_impl.java:794)
        at nl.novay.keywordSpotter.KeywordSpotterAS.initializeEngine(KeywordSpotterAS.java:576)
        at nl.novay.keywordSpotter.KeywordSpotterAS.run(KeywordSpotterAS.java:507)
        at nl.novay.keywordSpotter.KeywordSpotterAS.main(KeywordSpotterAS.java:374)
Caused by: java.lang.NullPointerException
        at org.apache.uima.resource.CasDefinition.<init>(CasDefinition.java:66)
        at org.apache.uima.resource.impl.CasManager_impl.getCasDefinition(CasManager_impl.java:95)
        at org.apache.uima.resource.impl.CasManager_impl.createNewCas(CasManager_impl.java:198)
        at org.apache.uima.util.CasPool.fillPool(CasPool.java:315)
        at org.apache.uima.util.CasPool.<init>(CasPool.java:187)
        at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:176)
        at org.apache.uima.resource.impl.CasManager_impl.defineCasPool(CasManager_impl.java:153)
        at org.apache.uima.aae.EECasManager_impl.defineCasPool(EECasManager_impl.java:56)
        at org.apache.uima.aae.AsynchAECasManager_impl.initialize(AsynchAECasManager_impl.java:97)
        at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.initialize(BaseUIMAAsynchronousEngine_impl.java:765)
        ... 3 more
Nick Nikandish | 28 Jul 17:32 2014

CAS to RDF


Hi there,

I am able to generate an XML file from a CAS using CasToInlineXML() class. I was wondering if there was any
class or method  in UIMA that we can generate RDF files from a CAS?

Thanks,
Nick

Armin.Wegner | 28 Jul 14:55 2014
Picon

Lucas

Hi!

Is someone using Lucas? It seems to be slightly outdated. It depends on Lucene 2.9.3. Lucene is at version
4.9.0 right now. Is there an alternative?

Regards,
Armin

James Baker | 24 Jul 14:16 2014
Picon

Passing additional parameters through to CPE components

Is it possible to provide additional configuration parameters in a CPE
descriptor XML file that aren't specified in the annotator/collection
reader descriptor XML file?

I have a collection reader that accepts the classname of a class to use to
do the content extraction as a parameter. This works fine, but I'd like to
be able to pass additional parameters to the content extractor via the XML.
The parameters will be dependant on the content extractor though, so I
can't specify them in the collection reader descriptor. For example,
ContentExtractor1 might need a parameter 'encoding', and ContentExtractor2
might need a parameter 'baseUrl'.

I have been able to achieve this with UimaFIT by creating the collection
reader without the XML and injecting the parameters, but when I try and do
it from the XML file the parameters don't make it through to my content
extractor (I pass the UimaContext object through to the content extractor).
I suspect they might be being ignored by UIMA because they aren't in the
descriptor. How can I work around this?

Thanks,
James

Gmane