Writing a Core Annotator - RHIT-XPrize/rhit-xprize-pipeline GitHub Wiki

Right click on the desc folder and create a new “Analysis Engine Descriptor File.” Use the appropriate Eclipse view to edit the underlying XML file according to your needs, adding Parameters and Types as necessary. See this tutorial on how to create a simple Annotator. Create the corresponding Java Annotator, add the implementation details, and set it as the relevant class in the descriptor file.

If you want your analysis engine to be part of an Aggregate Analysis Engine (essentially a chain of Annotators, each of which reliant upon the output of earlier Annotators; more details here), note that you’ll also have to create a separate Analysis Engine Descriptor File to define the chain you wish to create.

All Annotators, in the end, are combined together into the MainAnalysisEngine, an Aggregate Engine and the only one loaded in by the main method in code. The pipeline is set up as a tree, and as such, to add a new Annotator, you must add it to the appropriate Aggregate Analysis Engine (be that the MainAnalysisEngine or one of its sub-Annotators) for it to be put in use.

⚠️ **GitHub.com Fallback** ⚠️