Matthias Wendt | 3 Nov 13:59
Picon
Favicon

AW: compatibility issues of uimacpp vs. uimaj using uima-as

Hello Eddie,

thank you very much for your quick reaction. However, I am sorry to have to note that another related issue
turned out:

I have a FeatureStructure type containing a StringArrayFS typed feature. When I create this
FeatureStructure in a C++ AE and fill the array, everything works fine. But when the FeatureStructure is 
created in another AE and handed into a C++ AE where the array is filled, it does not come back into any Java
application using it (AE/Application). 

The bug does not occur when the C++ TAE is deployed as a JNI driven AE - maybe there is a bug/incompatibility in
the serialization.? Running it as a native process, however, is about 3-4 times faster.

I would really appreciate to have this fixed in the upcoming release - if possible. 

Regards,
Matthias

-----Ursprüngliche Nachricht-----
Von: Eddie Epstein [mailto:eaepstein@...] 
Gesendet: Mittwoch, 21. Oktober 2009 16:02
An: uima-user@...
Betreff: Re: compatibility issues of uimacpp vs. uimaj using uima-as

Matthias,

Two issues have been created against UIMACPP, a documentation issue
covering points 1&2 and a getMeta issue not returning <elementType>.

Many thanks for the input,
(Continue reading)

Eddie Epstein | 3 Nov 15:59
Picon

Re: compatibility issues of uimacpp vs. uimaj using uima-as

Hi Matthias,

I'm having trouble reproducing the problem with the latest uimacpp
code. Please correct this scenario:

1. Modify type definition for David in DaveDetector.xml to add a
StringArrayFS feature:
    <typeDescription>
      <name>org.apache.uima.examples.David</name>
      <description></description>
      <supertypeName>uima.tcas.Annotation</supertypeName>
      <features>
        <featureDescription>
          <name>variants</name>
          <description/>
          <rangeTypeName>uima.cas.StringArray</rangeTypeName>
        </featureDescription>
      </features>
    </typeDescription>

2. Modify DaveDetector.cpp to add the array to an FS in the incoming CAS:
    ANIndex daveIndex = tcas.getAnnotationIndex(david);
    ANIterator daveIter = daveIndex.iterator();
    daveIter.moveToFirst();
    if (daveIter.isValid()) {
      cout << "Found an incoming Dave" << endl;
      AnnotationFS aDave = daveIter.get();
      cout << "filling array" << endl;
      StringArrayFS anFsArray = tcas.createStringArrayFS(3);
      anFsArray.set(0, icu::UnicodeString("first"));
(Continue reading)

Matthias Wendt | 3 Nov 20:08
Picon
Favicon

Re: compatibility issues of uimacpp vs. uimaj using uima-as

Eddie Epstein schrieb:
> Hi Matthias,
>
> I'm having trouble reproducing the problem with the latest uimacpp
> code. Please correct this scenario:
>
> 1. Modify type definition for David in DaveDetector.xml to add a
> StringArrayFS feature:
> 2. Modify DaveDetector.cpp to add the array to an FS in the incoming CAS:
Pretty much the same
> 3. Launch DaveDetector as a service (with broker running on
> tcp://localhost:61616)
>     C:\uimacpp\examples>deploycppservice descriptors\DaveDetector.xml
> DaveDetector
>   
3.a Create a deployment descriptor:

<?xml version="1.0" encoding="UTF-8"?>
<analysisEngineDeploymentDescription 
xmlns="http://uima.apache.org/resourceSpecifier">
  <deployment protocol="jms" provider="activemq">
    <service>
      <inputQueue endpoint="DaveDetector" 
brokerURL="tcp://localhost:61616" prefetch="1"/>
      <!-- if arrays don't survive, comment custom element -->
      <custom name="run_top_level_CPP_service_as_separate_process"/>
      <environmentVariables>
        <environmentVariable 
name="LD_LIBRARY_PATH">${lib.dir}</environmentVariable>
      </environmentVariables>
(Continue reading)

Eddie Epstein | 3 Nov 21:10
Picon

Re: compatibility issues of uimacpp vs. uimaj using uima-as

So the only difference in your scenario is to use deployAsyncService?
Both use the same deployCppService executable. The only functional
difference could be the environment picked up from specified
<environmentVariables>.

Since yours has name="LD_LIBRARY_PATH">${lib.dir}, I also tried with a
Linux build, but had no problem there either.

Just to be clear, you are seeing the problem with the minimal
DaveDetector scenario? If so, using fairly recent SVN code for both
uimaj and uimacpp? There were some changes recently dealing with
quiesce and shutdown of deployCppService, but no changes in XMI CAS
serialization on either side for some months.

The only other thing I can think to suggest is putting an XMI dump in
the uimacpp annotator service on entry and before it returns the CAS
to confirm that the service inputs and outputs are what you expect.

Eddie

On Tue, Nov 3, 2009 at 2:08 PM, Matthias Wendt
<matthias.wendt@...> wrote:
> Eddie Epstein schrieb:
>>
>> Hi Matthias,
>>
>> I'm having trouble reproducing the problem with the latest uimacpp
>> code. Please correct this scenario:
>>
>> 1. Modify type definition for David in DaveDetector.xml to add a
(Continue reading)

Matthias Wendt | 4 Nov 15:00
Picon
Favicon

AW: compatibility issues of uimacpp vs. uimaj using uima-as

Hi,

I am using a 64-bit build of the source distribution that was available on the download page of the website.
However, I don't know exactly how it was built and from which version. The version suffix of the .so library
file is 2.2. I am currently trying to make a fresh 64-bit build but stuck with problems with the required
activemq version (only compatible up to 2.1.3), which somehow I cannot build. 

I did not try the minimal scenario but it's fairly similar to mine.

I will continue testing and be back as soon as I found out something more.

Matthias

So the only difference in your scenario is to use deployAsyncService?
Both use the same deployCppService executable. The only functional
difference could be the environment picked up from specified
<environmentVariables>.

Since yours has name="LD_LIBRARY_PATH">${lib.dir}, I also tried with a
Linux build, but had no problem there either.

Just to be clear, you are seeing the problem with the minimal
DaveDetector scenario? If so, using fairly recent SVN code for both
uimaj and uimacpp? There were some changes recently dealing with
quiesce and shutdown of deployCppService, but no changes in XMI CAS
serialization on either side for some months.

The only other thing I can think to suggest is putting an XMI dump in
the uimacpp annotator service on entry and before it returns the CAS
to confirm that the service inputs and outputs are what you expect.
(Continue reading)

Eddie Epstein | 4 Nov 22:36
Picon

Re: compatibility issues of uimacpp vs. uimaj using uima-as

Hi Matthias,

Just FYI, I've built the current source from svn on a 64-bit machine
and run this scenario with no problems. Note that it needs the latest
UIMA and UIMA AS builds to use deployAsyncService.

I also had problems building activemq 2.1.3, until installing their
recommended versions before running autogen.sh:

autoconf    >= 2.60
automake    >= 1.10
libtool     >= 1.5.24

These exact versions worked. I also installed cppunit, but not sure
this mattered.

Regards,
Eddie

On Wed, Nov 4, 2009 at 9:00 AM, Matthias Wendt <wendt@...> wrote:
> Hi,
>
> I am using a 64-bit build of the source distribution that was available on the download page of the website.
However, I don't know exactly how it was built and from which version. The version suffix of the .so library
file is 2.2. I am currently trying to make a fresh 64-bit build but stuck with problems with the required
activemq version (only compatible up to 2.1.3), which somehow I cannot build.
>
> I did not try the minimal scenario but it's fairly similar to mine.
>
> I will continue testing and be back as soon as I found out something more.
(Continue reading)

Nicolas Hernandez | 5 Nov 08:54
Picon

Launch of the uima-fr.org web portal

Dear All,

Following the first French-speaking workshop around the framework UIMA
which took place in Nantes, France, in the context of the 10th edition
of the Libre Software Meeting (LSM/RMLL) in July 2009,

We are glad to inform you the launch of the uima-fr.org web portal.

This portal aims at developing a UIMA French-speaking community by
providing services for French-speaking users and developers,
researchers or professionals from both academic and industrial
organizations to discuss and exchange information about UIMA.

Currently, the portal offers two services allowing anyone to inform
and to share informations about UIMA.
  * a discussion list http://sympa.univ-nantes.fr/wws/info/discussion-uima-fr
  * and a feed aggregator designed to collect posts from the blogs of
any member of the community and display them on a single page
http://uima-fr.org/planet/

These services have been set up by the Computer Sciences Laboratory of
Nantes Atlantic (LINA), we invite anyone who wants to contribute to
come and discuss in the mailing list.

Best regards,

Nicolas Hernandez

We apologize for multiples copies of this message. Please forward this
mail to anyone interested.
(Continue reading)

William Colen | 5 Nov 14:55
Picon

Beginner question: can't override multi-valued parameters

Hi,

I created an annotator with a multi-valued parameter and set a default value
to it.
Later I created a aggregate annotator, added that first annotator to it, and
tried to override that multi-valued parameter, but it is not working. During
runtime I always get the default value, not the one I set in the aggregate
annotator.
Other non multi-valued overrides are working fine.
Am I missing something?

Thank you
William
Thilo Goetz | 6 Nov 08:11
Picon
Picon

Re: Beginner question: can't override multi-valued parameters

William Colen wrote:
> Hi,
> 
> I created an annotator with a multi-valued parameter and set a default value
> to it.
> Later I created a aggregate annotator, added that first annotator to it, and
> tried to override that multi-valued parameter, but it is not working. During
> runtime I always get the default value, not the one I set in the aggregate
> annotator.
> Other non multi-valued overrides are working fine.
> Am I missing something?
> 
> 
> Thank you
> William
> 

Sounds like a bug.  Can you file a Jira issue and attach some
sample code that exhibits the problem?

--Thilo

ashkan taassob | 6 Nov 10:43
Picon
Favicon

JDBC

Hello,
I have a question. In order to use database output in UIMA, can we give adress´s database accsses (JDBC) in
UIMA. for example, I want to give an adress in class "TutorialDataTime.jav" instead of this constants in
line " static final String shortMonthNames =
"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)"; " the output from a database access.
how can I do it?
thanks a lot for your helps,
sincerely yours,
Ashkan Taassob

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Gmane