public class CTAKESContentHandler extends ContentHandlerDecorator
This class relies on Apache cTAKES that is a natural language processing system for extraction of information from electronic medical record clinical free-text.
| Modifier and Type | Field and Description |
|---|---|
static String |
CTAKES_META_PREFIX |
| Constructor and Description |
|---|
CTAKESContentHandler()
Default constructor.
|
CTAKESContentHandler(ContentHandler handler,
Metadata metadata)
Creates a new
CTAKESContentHandler for the given ContentHandler and Metadata objects. |
CTAKESContentHandler(ContentHandler handler,
Metadata metadata,
CTAKESConfig config)
Creates a new
CTAKESContentHandler for the given ContentHandler
and Metadata objects. |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
Metadata |
getMetadata()
Returns metadata that includes cTAKES annotations.
|
endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringerror, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningpublic static String CTAKES_META_PREFIX
public CTAKESContentHandler(ContentHandler handler, Metadata metadata, CTAKESConfig config)
CTAKESContentHandler for the given ContentHandler
and Metadata objects.handler - the ContentHandler object to be decorated.metadata - the Metadata object that will be populated using
biomedical information extracted by cTAKES.config - the CTAKESConfig object used to configure the handler.public CTAKESContentHandler(ContentHandler handler, Metadata metadata)
CTAKESContentHandler for the given ContentHandler and Metadata objects.handler - the ContentHandler object to be decorated.metadata - the Metadata object that will be populated using
biomedical information extracted by cTAKES.public CTAKESContentHandler()
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class ContentHandlerDecoratorSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ContentHandlerDecoratorSAXExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.