com.aliasi.corpus.parsers
Class MedlineTextParser

java.lang.Object
  extended by com.aliasi.corpus.Parser<H>
      extended by com.aliasi.corpus.InputSourceParser<H>
          extended by com.aliasi.corpus.XMLParser<TextHandler>
              extended by com.aliasi.corpus.parsers.MedlineTextParser

Deprecated. This class will move to the demos in 4.0.

@Deprecated
public class MedlineTextParser
extends XMLParser<TextHandler>

A MedlineTextParser extracts all text from the abstracts of MEDLINE citations, passing them to the contained text handler.

See MedlineCitationSet for more information on the MEDLINE corpus format.

Since:
LingPipe2.1
Version:
3.9.1
Author:
Bob Carpenter

Constructor Summary
MedlineTextParser()
          Deprecated. Construct a text parser that extracts abstract text from MEDLINE citations with a null handler.
MedlineTextParser(TextHandler handler)
          Deprecated. See class documentation.
 
Method Summary
 TextHandler getTextHandler()
          Deprecated. Use generic Parser.getHandler() instead.
 DefaultHandler getXMLHandler()
          Deprecated. Returns the XML handler for this text parser.
 
Methods inherited from class com.aliasi.corpus.XMLParser
parse
 
Methods inherited from class com.aliasi.corpus.InputSourceParser
parseString
 
Methods inherited from class com.aliasi.corpus.Parser
getHandler, parse, parse, parseString, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedlineTextParser

public MedlineTextParser()
Deprecated. 
Construct a text parser that extracts abstract text from MEDLINE citations with a null handler. The text handler may be set later using Parser.setHandler(Handler).


MedlineTextParser

@Deprecated
public MedlineTextParser(TextHandler handler)
Deprecated. See class documentation.

Construct a MEDLINE text parser with the specified handler. The handler may be reset later using Parser.setHandler(Handler).

Parameters:
handler - Text handler for this parser.
Method Detail

getTextHandler

@Deprecated
public TextHandler getTextHandler()
Deprecated. Use generic Parser.getHandler() instead.

Returns the text handler for this parser.

Returns:
The text handler for this parser.
Throws:
ClassCastException - If the handler * class.

getXMLHandler

public DefaultHandler getXMLHandler()
Deprecated. 
Returns the XML handler for this text parser.

Specified by:
getXMLHandler in class XMLParser<TextHandler>
Returns:
SAX handler for XML parsing.