public class ExternalAnnotator extends Object implements LeoAnnotator
| Modifier and Type | Field and Description |
|---|---|
protected LeoAEDescriptor |
descriptor
External descriptor imported to LeoAnnotator for use in the SimplePipeline representation.
|
| Constructor and Description |
|---|
ExternalAnnotator(String descriptor,
boolean byName,
int numInstances,
NameValue... paramValues)
Create this annotator by importing an external descriptor.
|
ExternalAnnotator(String descriptor,
boolean byName,
NameValue... paramValues)
Create this annotator by importing an external descriptor.
|
ExternalAnnotator(String name,
String implementation_class)
Constructor that creates a blank AnalysisEngineDescriptor object with the name provided.
|
| Modifier and Type | Method and Description |
|---|---|
ExternalAnnotator |
addTypeSystemDescription(LeoTypeSystemDescription leoTypeSystemDescription)
Add the type system provided to the existing type system of this annotator.
|
LeoDelegate |
getDescriptor()
Return the Descriptor for this AnalysisEngine or RemoteAnalysisEngine.
|
LeoTypeSystemDescription |
getLeoTypeSystemDescription()
Return the type system description for this annotator.
|
String |
getName()
Get the name of this annotator.
|
int |
getNumInstances()
Number of instances of this annotator in the pipeline.
|
ExternalAnnotator |
setName(String name)
Set the name of this annotator.
|
ExternalAnnotator |
setNumInstances(int numInstances)
Set the number of instances of this annotator in the pipeline.
|
protected LeoAEDescriptor descriptor
public ExternalAnnotator(String name, String implementation_class)
name - the name of the AnalysisEngine, Leo will make sure it is unique.implementation_class - the fully qualified name of the Annotator Class.public ExternalAnnotator(String descriptor, boolean byName, NameValue... paramValues) throws IOException, org.apache.uima.util.InvalidXMLException
descriptor - path or name of a descriptor file used to generate the AEDbyName - if true then try to import by name otherwise import by locationparamValues - Optional, list of parameters names and values to set. Creates the
parameter if it does not already exist.IOException - if the descriptor cannot created.org.apache.uima.util.InvalidXMLException - if there is a problem creating the xml.public ExternalAnnotator(String descriptor, boolean byName, int numInstances, NameValue... paramValues) throws IOException, org.apache.uima.util.InvalidXMLException
descriptor - path or name of a descriptor file used to generate the AEDbyName - if true then try to import by name otherwise import by locationnumInstances - Number of replication instances for this annotator in the pipelineparamValues - Optional, list of parameters names and values to set. Creates the
parameter if it does not already exist.IOException - if the descriptor cannot created.org.apache.uima.util.InvalidXMLException - if there is a problem creating the xml.public int getNumInstances()
public ExternalAnnotator setNumInstances(int numInstances)
numInstances - Number of replication instances for this annotator in the pipelinepublic String getName()
public ExternalAnnotator setName(String name)
name - String representation of the annotator name to setpublic LeoDelegate getDescriptor() throws Exception
LeoAnnotatorgetDescriptor in interface LeoAnnotatorException - If there is an error generating the descriptor.public LeoTypeSystemDescription getLeoTypeSystemDescription()
public ExternalAnnotator addTypeSystemDescription(LeoTypeSystemDescription leoTypeSystemDescription)
leoTypeSystemDescription - type system to add.Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.