UIMA class?
Hi, I’ve found that UIMA has such a learning curve to it that I’m wondering if anyone ever offers classes in it (real-life, not YouTube). If the instructor really knew what they were doing, I’d pay to travel somewhere for a week to get some intensive training in it. Failing that, I’m wondering whether there are any learning resources other than just sitting down with the manual and trying stuff (which is what I’ve been doing). That’s how I normally learn new systems, but this is a particularly tough one to learn without any sort of mentoring. —Sean
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
Basic UIMA questions
Hi, I have a few questions on the basic concepts of UIMA. It’s fine if you tell me to read the manuals, but I haven’t been able to find the answers there so far, so a chapter reference would be a big help. 1)If Annotator A creates an annotation, is it OK for Annotator B to modify the information in the annotations which A created? 2) I’ve read that an annotation can contain a reference to another annotation, but I haven’t been able to find instructions or an example. Possibly, I could generate the annotation class using JCasGen, and then manually augment the auto-generated code to support references to other annotation objects. Is that a good way to do it? Or is there some kind of built-in support? 3) Suppose I want a parser to build a parse tree over tokens. A parse tree consists of a hierarchy of nodes. I could represent each node as an annotation. Is that the most UIMA-like solution? The reason I hesitate is this. If I were writing a non-UIMA solution from scratch, I’d treat all of the nodes above the token level as abstract units, and those abstract units wouldn’t deal in concrete information such as the beginning and end of a character range. I’d keep track of that only at the token level. I think that all UIMA annotations are required to keep track of this information. Also, it sounds the only way for an annotator to retrieve existing annotations is to create an iterator and pull them out one by one. I wish there were a way to just get a reference to the root node of my parse tree, so that I can simply step recursively through the tree (which assumes I’ve arranged for each node to contain references to its children). Thanks, --Sean Crist
Re: Annotator class name is required for a primitive Analysis Engine
That was the problem. Thank you. ‹Sean Crist On 11/13/15, 4:50 PM, "Matthew DeAngelis" <roni...@gmail.com> wrote: >Hi Sean, > >Have you specified the name of the class file from the source folder? It's >been a while since I did the tutorial, but in descriptor file, under the >Overview tab, in the "Name of the Java class file" field, I have >"org.apache.uima.tutorial.ex1.RoomNumberAnnotator". In general, this field >specifies the actual Java class that implements annotation using the .xml >file as a descriptor. > > >Regards, >Matt > >On Fri, Nov 13, 2015 at 1:36 PM, Sean Crist <sean.cr...@humedica.com> >wrote: > >> >> Hello, >> >> I¹m working through the UIMA tutorial at >> http://uima.apache.org/doc-uima-annotator.html . Before writing to this >> list, I searched Google at length. I also made a new project and did >>the >> whole tutorial again, in case I missed something. >> >> To test the annotator, I ran CVD as instructed. Within CVD, I chose Run >> -> Load AE, and chose RoomNumberAnnotatorDescriptor.xml. At that >>point, I >> get this alert: >> >> org.apache.uima.resource.ResourceInitializationException: Annotator >>class >> name is required for a primitive Analysis Engine. (Descriptor: file: >> >>/Users/scrist/Documents/workspace/RoomNumberAnnotator/desc/RoomNumberAnno >>tatorDescriptor.xml) >> >> This would seem to suggest that my annotator class isn¹t in the class >> path. I did follow the earlier instruction to add the >>RoomNumberAnnotator >> project to the classpath. >> >> There are very few matches in Google for this particular error, so I¹m >> guessing that something quirky and unusual has gone wrong here. I¹m >>using >> Eclipse for Mac, Mars.1, Release 4.5.1. >> >> Thanks, >> --Sean Crist >> >>
Annotator class name is required for a primitive Analysis Engine
Hello, I’m working through the UIMA tutorial at http://uima.apache.org/doc-uima-annotator.html . Before writing to this list, I searched Google at length. I also made a new project and did the whole tutorial again, in case I missed something. To test the annotator, I ran CVD as instructed. Within CVD, I chose Run -> Load AE, and chose RoomNumberAnnotatorDescriptor.xml. At that point, I get this alert: org.apache.uima.resource.ResourceInitializationException: Annotator class name is required for a primitive Analysis Engine. (Descriptor: file: /Users/scrist/Documents/workspace/RoomNumberAnnotator/desc/RoomNumberAnnotatorDescriptor.xml) This would seem to suggest that my annotator class isn’t in the class path. I did follow the earlier instruction to add the RoomNumberAnnotator project to the classpath. There are very few matches in Google for this particular error, so I’m guessing that something quirky and unusual has gone wrong here. I’m using Eclipse for Mac, Mars.1, Release 4.5.1. Thanks, --Sean Crist