org.apache.ctakes.dependency.parser.ae.util
Class WriteClearNLPDescriptors

java.lang.Object
  extended by org.apache.ctakes.dependency.parser.ae.util.WriteClearNLPDescriptors

public class WriteClearNLPDescriptors
extends java.lang.Object

Use this to generate UIMA xml description files for the ClearNLP analysis engines.


Nested Class Summary
static class WriteClearNLPDescriptors.Options
           
 
Field Summary
static java.lang.String DEP_NAME
           
static java.lang.String LVG_BASE_TOKEN_ANNOTATOR_PATH
           
static java.lang.String POS_TAGGER_PATH
           
static java.lang.String SENTENCE_DETECTOR_PATH
           
static java.lang.String SIMPLE_SEGMENTER_PATH
           
static java.lang.String SRL_NAME
           
static java.lang.String TOKENIZER_PATH
           
 
Constructor Summary
WriteClearNLPDescriptors()
           
 
Method Summary
static org.uimafit.factory.AggregateBuilder getPlaintextAggregateBuilder()
          Builds the plaintext prepreprocessing pipeline for ClearNLP
static org.uimafit.factory.AggregateBuilder getTokenizedAggregateBuilder()
          Builds the tokenized preprocessing pipeline for ClearNLP
static org.uimafit.factory.AggregateBuilder getTokenizedInfPosAggregateBuilder()
          Builds the tokenizedInf preprocessing for ClearNLP
static org.apache.uima.analysis_engine.AnalysisEngineDescription loadDescription(java.lang.String pathToDescription)
          Simple method to load xml description and return an AnalysisEngineDescription object
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_SEGMENTER_PATH

public static final java.lang.String SIMPLE_SEGMENTER_PATH
See Also:
Constant Field Values

SENTENCE_DETECTOR_PATH

public static final java.lang.String SENTENCE_DETECTOR_PATH
See Also:
Constant Field Values

TOKENIZER_PATH

public static final java.lang.String TOKENIZER_PATH
See Also:
Constant Field Values

LVG_BASE_TOKEN_ANNOTATOR_PATH

public static final java.lang.String LVG_BASE_TOKEN_ANNOTATOR_PATH
See Also:
Constant Field Values

POS_TAGGER_PATH

public static final java.lang.String POS_TAGGER_PATH
See Also:
Constant Field Values

DEP_NAME

public static final java.lang.String DEP_NAME
See Also:
Constant Field Values

SRL_NAME

public static final java.lang.String SRL_NAME
See Also:
Constant Field Values
Constructor Detail

WriteClearNLPDescriptors

public WriteClearNLPDescriptors()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.apache.uima.UIMAException,
                        org.xml.sax.SAXException
Parameters:
args -
Throws:
java.io.IOException
org.apache.uima.UIMAException
org.xml.sax.SAXException

getPlaintextAggregateBuilder

public static org.uimafit.factory.AggregateBuilder getPlaintextAggregateBuilder()
                                                                         throws org.apache.uima.util.InvalidXMLException,
                                                                                java.io.IOException
Builds the plaintext prepreprocessing pipeline for ClearNLP

Returns:
Throws:
org.apache.uima.util.InvalidXMLException
java.io.IOException

getTokenizedAggregateBuilder

public static org.uimafit.factory.AggregateBuilder getTokenizedAggregateBuilder()
                                                                         throws org.apache.uima.util.InvalidXMLException,
                                                                                java.io.IOException
Builds the tokenized preprocessing pipeline for ClearNLP

Returns:
Throws:
org.apache.uima.util.InvalidXMLException
java.io.IOException

getTokenizedInfPosAggregateBuilder

public static org.uimafit.factory.AggregateBuilder getTokenizedInfPosAggregateBuilder()
                                                                               throws org.apache.uima.util.InvalidXMLException,
                                                                                      java.io.IOException
Builds the tokenizedInf preprocessing for ClearNLP

Returns:
Throws:
org.apache.uima.util.InvalidXMLException
java.io.IOException

loadDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription loadDescription(java.lang.String pathToDescription)
                                                                                 throws java.io.IOException,
                                                                                        org.apache.uima.util.InvalidXMLException
Simple method to load xml description and return an AnalysisEngineDescription object

Parameters:
pathToDescription -
Returns:
Throws:
java.io.IOException
org.apache.uima.util.InvalidXMLException