public class CTAKESParser
extends org.apache.tika.parser.ParserDecorator
Parser and leverages on
CTAKESContentHandler to extract biomedical information from
clinical text using Apache cTAKES.
It is normally called by supplying an instance to
AutoDetectParser, such as:
AutoDetectParser parser = new AutoDetectParser(new CTAKESParser());
It can also be used by giving a Tika Config file similar to:
Because this is a Parser Decorator, and not a normal Parser in it's own right, it isn't normally selected via the Parser Service Loader.
| Constructor and Description |
|---|
CTAKESParser()
Wraps the default Parser
|
CTAKESParser(org.apache.tika.parser.Parser parser)
Wraps the specified Parser
|
CTAKESParser(org.apache.tika.config.TikaConfig config)
Wraps the default Parser for this Config
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDecorationName() |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
public CTAKESParser()
public CTAKESParser(org.apache.tika.config.TikaConfig config)
public CTAKESParser(org.apache.tika.parser.Parser parser)
public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException
parse in interface org.apache.tika.parser.Parserparse in class org.apache.tika.parser.ParserDecoratorIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic String getDecorationName()
getDecorationName in class org.apache.tika.parser.ParserDecoratorCopyright © 2007–2025 The Apache Software Foundation. All rights reserved.