Uima AS out of memory

2014-08-19 Thread Swirl
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 a

Re: Deploy entire uima as service in multiple nodes

2014-07-30 Thread Swirl
Swirl writes: > > 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 t

Deploy entire uima as service in multiple nodes

2014-07-30 Thread Swirl
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 docum

Re: Invalid descriptor at jar

2014-04-29 Thread swirl
Richard Eckart de Castilho writes: > > Xalan: Something like this (see source code of EnvironmentCheck): > > PrintWriter sendOutputTo = new PrintWriter(System.out, true); > EnvironmentCheck app = new EnvironmentCheck(); > app.checkEnvironment(sendOutputTo); > > You could also try

Re: Invalid descriptor at jar

2014-04-28 Thread swirl
Richard Eckart de Castilho writes: > > You may experience UIMA-2155 [1]. > > Please check what version of Xalan is used at runtime - it should not be 2.6.0 or earlier. > Thanks for your fast response. How do I check the Xalan version at runtime? BTW, I tried putting Xalan 2.7.0 and 2.7.1

Invalid descriptor at jar

2014-04-28 Thread swirl
I have a tomcat web application that uses Uima for text processing. I used the Uimafit's auto type detection for loading the types. On uimafit 2.4.0, there was not problem, after I used 2.4.2 with uimafit legacy support, I am getting the error below when running the web application: 2014-04-28 1

Re: can I copy paste uima codes and use it in my proprietary application?

2014-03-27 Thread swirl
Richard Eckart de Castilho writes: > > If you follow the rules of the Apache Software License, you can copy the code. > > Can you point out to us which issues exactly force you to copy code? Possibly > we can up those on our priority lists. > > Cheers, > Thanks, this being my first projec

can I copy paste uima codes and use it in my proprietary application?

2014-03-27 Thread swirl
Currently there are some issues in some uima and uimafit classes that I cannot use as is in my application. If I copy and paste the source codes for these classes and use them in my application, does it violate uima and uimafit license?

Re: Sharing the same ExternalResource instance between a CollectionReader and Annotators

2014-02-06 Thread swirl
swirl writes: > > Richard Eckart de Castilho ...> writes: > > > > > Thanks for the report. This hasn't been noticed so far. > > > > I am afraid that SimplePipeline currently does not support sharing > > a resource between the reader and the com

Re: Sharing the same ExternalResource instance between a CollectionReader and Annotators

2014-02-06 Thread swirl
Richard Eckart de Castilho writes: > > Thanks for the report. This hasn't been noticed so far. > > I am afraid that SimplePipeline currently does not support sharing > a resource between the reader and the components. > > Internally, SimplePipeline instantiates the reader and the components >

Sharing the same ExternalResource instance between a CollectionReader and Annotators

2014-02-05 Thread swirl
I am creating a pipeline as follows: a. CollectionReader b. AnnotatorA c. AnnotatorB All the above (including the CollectionReader and the 2 annotators) have a dependency on an ExternalResource. Here's a shortened code that I used: // create the external resource desc ExternalResourceDescriptio

Re: Running CasMultiplier inside a JCasIterable

2013-12-04 Thread Swirl
> Option 2 - let UIMA do the heavy lifting > > An alternative and much simple approach might be to create an aggregate which > does not only contain the engines, but also the reader. Then you don't have > to > worry about the reader anymore at all. Just create a UIMA JCasIterator and > poll C

Re: Running CasMultiplier inside a JCasIterable

2013-12-03 Thread Swirl
Richard Eckart de Castilho writes: > > For further reference: > > https://issues.apache.org/jira/browse/UIMA-3470 > Thanks for raising the Jira. I tried looking at the source codes, but I think I am not able to come up with a solution for this. Do you have any pointers to get me started?

Running CasMultiplier inside a JCasIterable

2013-11-21 Thread Swirl
I have successfully used CasMultiplier to spilt up a document into segments for further processing using SimplePipeline.runPipeline(). I did this by wrapping the CasMultiplier and the succeeding Annotator within a aggregate. But by simply changing the usage of SimplePipeline.runPipeline() to usi

Re: Purpose of ConfigurationParameterFactory.createConfigurationParameterName()

2013-11-14 Thread Swirl
Richard Eckart de Castilho writes: > In ClearTK, in particular in the machine learning module, there were > analysis engines for learning classifiers. However, there wasn't one > AE per training algorithm, rather one passed in the name of a class which > implemented such an algorithm was passed

Purpose of ConfigurationParameterFactory.createConfigurationParameterName()

2013-11-12 Thread Swirl
According to documentation for UimaFit 2.0 (http://uima.apache.org/d/uimafit- current/tools.uimafit.book.html), the method ConfigurationParameterFactory.createConfigurationParameterName() that was used to generate the prefixed name has been removed. Does that mean the recommendation for naming p

Re: Designing collection readers: Reading multiple XML files containing multiple CASes

2013-10-10 Thread Swirl
> > For part c: > > I imagine an algorithm that can scan the main XML file and find the "sections". > For each section it finds, it can produce a CAS and initialize that CAS with the > section's information. > > If this algorithm lives inside an analysis component, then it can use the "CAS >

Designing collection readers: Reading multiple XML files containing multiple CASes

2013-10-06 Thread swirl
Hi, I am wondering if anyone has a better idea. Requirement: a. I have a pipeline that needs to process a bunch of XML files. b. The XML files could be on the disk, or from a remote location (available via a HTTP GET call, e.g. http://example.com/inputFiles/001.xml) c. Each XML file contain mulit

Re: Using eCorbertura Eclipse plugin with Uimafit

2013-09-17 Thread Swirl
Richard Eckart de Castilho writes: > > I'm using the Cobertura Plugin in Maven and that works just nice. > > uimaFIT loads the META-INF/org.uimafit/types.txt files by scanning the > classpath. So either the file has not been copied from the source folder > to the classpath when eCobertura is ex

Using eCorbertura Eclipse plugin with Uimafit

2013-09-16 Thread Swirl
Has anyone tried to run eCortertura's "Cover As" with Uimafit's automatic type loading? My types are defined in Maven module inside the src/main/resources folder and I have a META-INF/org.uimafit/types.txt. In my main app, I tried to run JUnit for my unit tests and it ran fine. But when I used

Logging uima in Tomcat application

2013-08-13 Thread swirl
Hi, I am running uima inside a maven tomcat application, but I could not figure out how to capture the logs generated by the uima analysis engines and collection readers. What is the configuration in tomcat that will let me specify the location of the uima logs to be stored? I tried putting lo

Re: Uima and Proguard obfuscation

2013-08-13 Thread swirl
Richard Eckart de Castilho writes: > That said, the obfuscator may have "optimized" > > private String outputDirectory > away, because the value is never changed in the code known > to the obfuscator. It cannot know that uimaFIT changes this > field using reflection. > Thanks for the info.

Uima and Proguard obfuscation

2013-07-28 Thread swirl
Hi! I was trying to create a obfuscated API library based on Uima/Uimafit. My project was in Maven so I used the Proguard plugin: http://pastebin.com/T3N3JgVv When tried to use the obfuscated jar in a separate application, an Uima parameter "PARAM_OUTDIR" was strangely nullified. For an un-o

Re: Using uima pipeline as an API

2013-07-24 Thread swirl
Richard Eckart de Castilho writes: > > You should take a look at the JCasIterable (cf. [1] - Example in Groovy, but > JCasIterable is a Java class and works nicely in Java too, just I have no > example in Java). > > JCasIterable basically allows you to iterate over the CASes produced by you

Re: Running Uima in Tomcat (loading of large model)

2013-07-19 Thread swirl
Marshall Schor writes: > > > On 7/16/2013 10:38 PM, swirl wrote: > > I am wrapping a Uima analysis engine in a Tomcat. > > > > This AE loads and parses a large model file (300Mb). > > The loading time of this model takes 3min. This is unacceptable if users

Using uima pipeline as an API

2013-07-18 Thread swirl
Hi, I have this particular requirement for a API that we wrap over a Uima pipeline. public List analyse(String inputFolderPath, String modelName); This method is supposed to accept a collection of files (residing in the inputFolderPath), run the files (as CAS) through a pipeline of UIMA AEs,

Re: Running Uima in Tomcat (memory issue)

2013-07-17 Thread swirl
Richard Eckart de Castilho writes: > > Am 17.07.2013 um 05:11 schrieb swirl : > > > I am wrapping a Uima analysis engine in a Tomcat JSF webapp. > > > > This AE loads and parses a large model file (300Mb). > > > > I can call the AE and run it usi

Running Uima in Tomcat (memory issue)

2013-07-16 Thread swirl
I am wrapping a Uima analysis engine in a Tomcat JSF webapp. This AE loads and parses a large model file (300Mb). I can call the AE and run it using SimplePipeline.runPipeline() via the webapp UI. However, the large model took up a large memory chunk that won't go away even after the AE is run

Running Uima in Tomcat (loading of large model)

2013-07-16 Thread swirl
I am wrapping a Uima analysis engine in a Tomcat. This AE loads and parses a large model file (300Mb). The loading time of this model takes 3min. This is unacceptable if users have to wait so long to do analysis on one document. What are the possible ways to reduce the loading time? One soluti

Running Uima in Tomcat (loading of large model)

2013-07-16 Thread swirl
I am wrapping a Uima analysis engine in a Tomcat. This AE loads and parses a large model file (300Mb). The loading time of this model takes 3min. This is unacceptable if users have to wait so long to do analysis on one document. What are the possible ways to reduce the loading time? One soluti

Re: How to create and use a repository for UIMA annotators?

2013-05-06 Thread swirl
Richard Eckart de Castilho writes: > > Hello Greg, > > > It's sort of a "maven-like" model (i.e. when using a Nexus server). Or maybe I should just actually use > maven and nexus? > > > > Has anyone out there tried to create a "UIMA Repository" that can be directly referenced from a compone

Re: Using PEAR in a application based on Uima framework

2013-05-01 Thread swirl
Richard Eckart de Castilho writes: > > > Erhmmm, has anybody do something like this before? > > I really am interested to know how you can do it. > > > > To clarify, I am very interested in how you can mix-match different PEARs, > > possibly from different open source projects, with different

Re: Using PEAR in a application based on Uima framework

2013-04-22 Thread swirl
swirl writes: > > I am currently developing a Tomcat application that wraps around Uima to run > text mining processes. > I am confused over what PEAR can be used for and how it can be used in a Uima- > wrapped application. > > The application is to be deploy

Using PEAR in a application based on Uima framework

2013-04-18 Thread swirl
I am currently developing a Tomcat application that wraps around Uima to run text mining processes. I am confused over what PEAR can be used for and how it can be used in a Uima- wrapped application. The application is to be deployed as a installed web application at our client's location and i