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 java.lang.String |
CTAKES_META_PREFIX |
Constructor and Description |
---|
CTAKESContentHandler()
Default constructor.
|
CTAKESContentHandler(org.xml.sax.ContentHandler handler,
Metadata metadata)
Creates a new
CTAKESContentHandler for the given ContentHandler and Metadata objects. |
CTAKESContentHandler(org.xml.sax.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, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toString
public CTAKESContentHandler(org.xml.sax.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(org.xml.sax.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 org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class ContentHandlerDecorator
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class ContentHandlerDecorator
org.xml.sax.SAXException
Copyright © 2010 - 2020 Adobe. All Rights Reserved