1 / 7

UIMA Overview

UIMA Overview. Fall 2005 OOPD John Anthony. UIMA Conceptual Overview. Steps to develop an Annotator. Define the CAS types the annotator will use Generate the Java classes for these types (automatic via JCasGen). Write the actual annotator java code

mio
Download Presentation

UIMA Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UIMA Overview Fall 2005 OOPD John Anthony

  2. UIMA Conceptual Overview

  3. Steps to develop an Annotator • Define the CAS types the annotator will use • Generate the Java classes for these types (automatic via JCasGen). • Write the actual annotator java code • Create the Analysis Engine (AE) descriptor • Test the Annotator.

  4. Define the Types • Create a Type Feature Descriptor. An XML file that defines the types.Eclipse includes the Component Descriptor Editor plug-in that will help create this file. • Types are analogous to classes and features are analogous to attributes. • You can create custom types or inherit from predefined types (the root is TOP).

  5. Create the Java classes for Types • If using Eclipse, JCasGen is automatically executed each time you save the type feature descriptor. • You can also run the tool outside of Eclipse by executing the jcasgen.bat located in the bin directory of UIMA.

  6. Develop Annotator Code JTextAnnotator JTextAnnotator_ImplBase Initialize() Process() Destroy() Must have default constructor so framework can instantiate it YouAnnotator process(….)

  7. process(…) Process takes two parms: • JCas  contains the document to be analyzed and the analysis results (accessed via the indexes). • Ignore ResultSpecification for now… Two important methods: aJCas.getdocumentText(); //returns the text of the document myAnnocation.addToIndexes(); //adds the annotation to the CAS index

More Related