Jaroslaw Cwiklik | 20 May 15:56 2016
Picon

[ANNOUNCE] Apache UIMA-AS 2.8.1 released

The Apache UIMA team is pleased to announce the release of the Apache
UIMA-AS version 2.8.1, which includes asynchronous scaleout capabilities
for the UIMA annotators.

UIMA-AS includes the base UIMA SDK and augments it with scaleout
capability; it is a next-generation replacement for the original CPM
(Collection Processing Management) scaleout that is part of the core UIMA
Framework. For more information, please visit:

http://uima.apache.org/doc-uimaas-what.html

This release contains a number of improvements and bug fixes. Notable
updates
in this release include:

- Replaced Activemq 5.7.0 with 5.13.2
- Added dependency on UIMA SDK 2.8.1
- Fixed per CAS Performance Metrics breakdown for async deployments
- Added new feature to allow warm up of a JVM service instance before real
processing begins,  by feeding it a specified set of CASes before the
instance connects to the service input queue.
- Allow dd2spring to use a custom XML parser

For a complete list of bugs and improvements included in this release
please see
https://uima.apache.org/d/uima-as-2.8.1/issuesFixed/jira-report.html.

-- Jerry Cwiklik, for the Apache UIMA development team
Pablo N. Mendes | 7 May 00:30 2016
Picon
Gravatar

No sofaFS for specified sofaRef found

Folks,
I am getting "No sofaFS for specified sofaRef found" while trying to
deserialize an XMI. I found the message a bit cryptic and didn't find much
help on the lazyweb, so I bit the bullet and spent a few hours poking
around. It seems to be a missing "sofa" attribute. If the sofa attribute
has the wrong value, then you get "xmi id <id> is referenced but not
defined" which is very nice and clear. But if you omit the sofa attribute
you get "No sofaFS for specified sofaRef found" which is less informative
IMHO.

Extra info below.

Cheers,
Pablo

$ diff cas1.xmi cas2.xmi
9c9
< <ls:DocumentMetadata xmi:id="18" sofa="1" source="file001.txt"
documentId="001"/>
---
> <ls:DocumentMetadata xmi:id="18" source="file001.txt" documentId="001"/>

VERSIONS

    <uima.version>2.8.1</uima.version>
    <uimafit.version>2.1.0</uimafit.version>

JAVA CODE SNIPPET

org.apache.uima.util.XmlCasDeserializer.deserialize(inputStream,
(Continue reading)

Mario Diana | 5 May 22:03 2016

Is there a simple PEAR Maven-plugin example project? ("Hello, World!" variety)

Can anyone point me to a UIMA project on GitHub, BitBucket, or elsewhere that uses the Maven-plugin to build
PEAR packages? The closer the project is to the "Hello, World!" variety, the better.

I'm just trying to get a jump on the learning curve. Thanks!

::::::::::::::::::::::::::::::::::::::::::::::::::
Mario Diana
Software Developer
Technically Creative Inc.
Simplifying IT Solutions
Office: 845.725.7883
mdiana@...<mailto:mdiana@...>
www.TechnicallyCreative.com<http://www.technicallycreative.com/>
::::::::::::::::::::::::::::::::::::::::::::::::::

Sean Crist | 5 May 21:44 2016

C++/Python annotators in Eclipse on Mac OS


Hello,

I’m trying to set up the ability to write annotators in C++ and in Python using Eclipse on Mac OS X.

I read the following two sources:

https://uima.apache.org/doc-uimacpp-huh.html

Also the README file in the download of UIMACPP

Both documents seem geared for using UIMA from the command line in Windows or Linux.  It wasn’t
immediately evident how to translate those instructions to my situation.  There were a few passing
mentions of Eclipse or Mac OS, but nothing like a step-by-step.

Is there a writeup on this that I’ve missed in my Google search?  Absent that, any pointers or suggestions
on how to proceed?

Thanks,
—Sean Crist

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.


Gmane