Anni R Coden | 28 Apr 23:06 2016
Picon

UIMAfit - cannot find type system

Hi - 

I am using UIMAfit 

I created a a file: META-INF/org.apache.uima.fit/types.txt

in the file I put

classpath*:Users/anni/ ............/typesystem.xml

However I get a enrror that TypeSystemMgr requires a particular type 
(specified in typesystem.xml) which was not found in the CAS

Here is the stack

Exception in thread "main" 
com.ibm.langware.annotator.jFrostAEProcessException: Annotator class 
com.ibm.dltj.uima_annotator.lex_analysis.TypeSystemMgr requires Type 
uima.tt.ParagraphAnnotation, which was not found in the CAS.
        at 
com.ibm.dltj.uima_annotator.implBase.TypeSystemMgr_ImplBase.initTypeCode(
TypeSystemMgr_ImplBase.java:66)
        at 
com.ibm.dltj.uima_annotator.lex_analysis.TypeSystemMgr.initTypeSystem(
TypeSystemMgr.java:141)
        at 
com.ibm.dltj.uima_annotator.implBase.AnalyzerContext_ImplBase.setTypeSystem(
AnalyzerContext_ImplBase.java:89)
        at 
com.ibm.dltj.uima_annotator.implBase.jFrostAnnotator_ImplBase.typeSystemInit(
(Continue reading)

Larry Cousin | 25 Apr 22:31 2016

CPE GUI Jar issue

Hi,

I have a pipeline that has a  casProcessor descriptor in a jar file that gives me an error when I try to run it in
the Eclipse CPE GUI.
The pipeline casProcessor has the following form:

<casProcessor deployment="integrated" name="annotateThis">
            <descriptor>
                <import name="com.a.b.c.aggregate.AProcessorAggregate"/>
           </descriptor>
...
</casProcessor>

I get the following type error when the pipeline is loaded (the aggregate definition file is in a Maven jar):

Could not load descriptor from URL
jar:file:/C:/Users/me/.m2/repository/com/a/b/c/1.2.3/Ajar-1.2.3.jar!/com/a/b/c/aggregate/AProcessorAggregate.xml
  CPR Configuator only supports file: URLs

So the system correctly translated "com.a.b.c.aggregate.AProcessorAggregate" into
jar:file:/C:/Users/me/.m2/repository/com/a/b/c/1.2.3/Ajar-1.2.3.jar!/com/a/b/c/aggregate/AProcessorAggregate.xml
and com/a/b/c/aggregate/APRocessorAggregate.xml is in the Jar /C:/Users/me/.m2/repository/com/a/b/c/1.2.3/Ajar-1.2.3.jar
but CPE GUI can't seem to use it.

Is there a way to reference this Jar aggregate xml definition file in a pipeline so Eclipse CPE GUI will not
error out?

Thanks!

(Continue reading)

Richard Eckart de Castilho | 6 Apr 21:05 2016
Picon

[ANNOUNCE] Apache uimaFIT 2.2.0 released

The Apache UIMA team is pleased to announce the release of

  Apache uimaFIT, version 2.2.0

Apache uimaFIT is a library that facilitates the building of
Apache UIMA components, the programmatic use of Apache UIMA
analysis pipelines, and their testing.

uimaFIT employs Java annotations to integrate UIMA meta data
directly into the source code, allowing for less lines of code
and better refactorability then traditional, XML descriptor-based
UIMA projects. It is capable of automatically detecting meta data,
e.g. type system information, from the classpath. Convenience
methods are provided for constructing components, pipelines,
and for accessing annotations.

The major changes in this release are:

* System requirements changed to Java 7
* new FSUtil class with methods to get/set feature values
* new selectAt method
* improved compatibility with thread context classloaders
* upgrades to dependencies including UIMA SDK and Spring Framework
* use of iteratorWithSnapshot in select methods
* ... otherwise this is a bug-fix release to version 2.1.0

For a full list of the changes, please refer to Jira:

  http://uima.apache.org/d/uimafit-2.2.0/issuesFixed/jira-report.html

(Continue reading)

Jos Denys | 5 Apr 14:54 2016

RE: UIMACPP and multi-threading

Hi Eddie,

I worked on the CPP-side, and what I noticed was that the JNI Interface always passes an instance pointer :

JNIEXPORT void JNICALL JAVA_PREFIX(resetJNI) (JNIEnv* jeEnv, jobject joJTaf) {
  try {
    UIMA_TPRINT("entering resetDocument()");

    uima::JNIInstance* pInstance = JNIUtils::getCppInstance(jeEnv, joJTaf);


Now the strange thing, and finally what caused the acces violation error, was that the pInstance pointer
was the same for the 3 threads that (simultaneously) did the UIMA processing,
so it looks like the same CAS was passed for 3 different analysis worker threads.

Any idea why and how this can happen ?

Thanks for your feedback,
Jos Denys,
InterSystems Benelux.


De : Benjamin De Boe
Envoyé : mardi 5 avril 2016 09:33
À : user <at> uima.apache.org
Cc : Jos Denys <Jos.Denys <at> intersystems.com>; Chen-Chieh Hsu <Chen-Chieh.Hsu <at> intersystems.com>
Objet : RE: UIMACPP and multi-threading


Hi Eddie,
(Continue reading)

Benjamin De Boe | 4 Apr 15:21 2016

UIMACPP and multi-threading

Hi,

We're working with a UIMACPP annotator (wrapping our existing NLP library) and are running in what appears
to be thread safety issues, which we can reproduce with the DaveDetector demo AE.
When separate threads are accessing separate instances of the
org.apache.uima.uimacpp.UimacppAnalysisComponent wrapper class on the Java side, it appears they
are invoking the same object on the C++ side, which results in quite a mess (access violations and process
crashes) when different threads concurrently invoke resetJNI() and fillCASJNI() on the
org.apache.uima.uimacpp.UimacppAnalysisComponent object. When using a small CAS pool on the Java
side, the problem does not seem to occur, but it resurfaces if the CAS pool grows bigger and memory settings
are not increased accordingly. However, if this were a pure memory issue, we had hoped to see more telling
errors and just guessing how big memory should be for larger deployments isn't very appealing an option either.
Adding the synchronized keyword to the relevant method of the wrapper class on the Java side also avoids the
issue, at the obvious cost of performance. Moving to UIMA-AS is not an option for us, currently.

Given that the documentation is not explicit about it, we're hoping to get an unambiguous answer from this
list: is UIMACPP actually supposed to be thread-safe? We saw old and resolved JIRA's that addressed
thread-safety issues for UIMACPP, so we assumed it was the case, but reality seems to point in the opposite direction.

Thanks in advance for your feedback,

benjamin

--
Benjamin De Boe | Product Manager
M: +32 495 19 19 27 | T: +32 2 464 97 33
InterSystems Corporation | http://www.intersystems.com

Benjamin De Boe | 4 Apr 16:56 2016

UIMACPP and multi-threading

Hi,

We're working with a UIMACPP annotator (wrapping our existing NLP library) and are running in what appears
to be thread safety issues, which we can reproduce with the DaveDetector demo AE.
When separate threads are accessing separate instances of the
org.apache.uima.uimacpp.UimacppAnalysisComponent wrapper class on the Java side, it appears they
are invoking the same object on the C++ side, which results in quite a mess (access violations and process
crashes) when different threads concurrently invoke resetJNI() and fillCASJNI() on the
org.apache.uima.uimacpp.UimacppAnalysisComponent object. When using a small CAS pool on the Java
side, the problem does not seem to occur, but it resurfaces if the CAS pool grows bigger and memory settings
are not increased accordingly. However, if this were a pure memory issue, we had hoped to see more telling
errors and just guessing how big memory should be for larger deployments isn't very appealing an option either.
Adding the synchronized keyword to the relevant method of the wrapper class on the Java side also avoids the
issue, at the obvious cost of performance. Moving to UIMA-AS is not an option for us, currently.

Given that the documentation is not explicit about it, we're hoping to get an unambiguous answer from this
list: is UIMACPP actually supposed to be thread-safe? We saw old and resolved JIRA's that addressed
thread-safety issues for UIMACPP, so we assumed it was the case, but reality seems to point in the opposite direction.

Thanks in advance for your feedback,

benjamin

--
Benjamin De Boe | Product Manager
M: +32 495 19 19 27 | T: +32 2 464 97 33
InterSystems Corporation | http://www.intersystems.com

reshu.agarwal | 31 Mar 11:48 2016

DUCC: Unable to do "Fixed" type of Reservation

Hi,

In DUCC 1.x, we are able to do fixed reservation of some of the memory 
of Nodes but We are restricted to do "reserve" type of reservation in 
DUCC 2.x. I want to know the reason for the same.

I am using ubuntu for DUCC installation and not be able to configure 
c-groups in it, So, I have tried to manage RAM utilization through FIXED 
reservation in DUCC 1.x. But, Now I have no option.

Hope, you can solve my problem.

Cheers.

Reshu.

Franck Valentin | 29 Mar 14:56 2016
Picon

Dynamically set configuration parameters in delegates.

Hi,

I use UIMA 2.6 and uimaFIT 2.1.0 to create an aggregate AE. 
I would like to set specific parameters for each delegate before running 
analyses (i.e. before running process()).
So far I tried to use configuration parameters but without success. If I 
use a simple AE alone then calling 
setConfigParameterValue() works but it doesn't when using an aggregate AE.
I stumbled also on a strange behavior: if the configuration parameter is 
not defined in the engine description but its value is 
set by setConfigParameterValue() then its name doesn't appear with 
getConfigParameterNames() but its value is correctly retrieved 
with getConfigParameterValue()!

Below is a simple code to test the aggregate (it's in Scala but should be 
easily understandable).

object TestConfigForAggregate extends App {

  val myConfigParamName = "myConfigParam"

  class MyAnnotator extends JCasAnnotator_ImplBase {
    override def process(jcas: JCas) {
      println("config parameter names=" +    
              getContext().getConfigParameterNames.toList)
      println(myConfigParamName + "=" + 
          getContext()
         .getConfigParameterValue(myConfigParamName)
         .asInstanceOf[String])
      println()
(Continue reading)

reshu.agarwal | 25 Mar 07:49 2016

DUCC 2.0.1: Job is not going to complete State

Hi,

I am facing a problem in DUCC 2.0.1 i.e. job is not completing even 
after CR hasNext() returned false. I had tested my job with 
"all_in_one=local/remote" both. It was successfully completed. But, in 
running cluster environment, It failed to stopped and it was 
continuously going to hasNext() even after returning false from it.

Need Help. Thanks in advance.

Reshu.

Pedro Contreras Flores | 24 Mar 19:05 2016
Picon

Consulta

Hola,

¿Hay algún usuario de UIMA que hable español?

Necesito ver casos de implementación en español.

Saludos,

PEDRO CONTRERAS

Chile

José Tomás Atria | 21 Mar 23:38 2016
Picon
Gravatar

ExternalResourceFactoryTest hangs when building uimafit-core 2.2.0-SNAPSHOT from github master

Hello all,

Two things;

First, building uimafit-core hangs on running ExternalFactoryTest on every
line involving UIMAFramework.produceAnalysisEngine( desc ). If I comment
out those lines (basically bypassing the tests), the build completes with
no issue.

Is this some quirk of my local build environment? Is there anything I
should be doing in order to get uimafit-core to build corectly?

Second, I remember there being a public snapshots repository, maybe
co-hosted with dkpro's snapshot repos. Am I correct on this? If so, where
can I find this repo? I'm getting a little nervious having to rebuild
uimafit from source myself if I have to start disabling tests to get it to
build.

thanks!
jta

--

-- 
entia non sunt multiplicanda praeter necessitatem

Gmane