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, toString
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
public 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 ContentHandler
characters
in class ContentHandlerDecorator
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class ContentHandlerDecorator
SAXException
public Metadata getMetadata()
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.