com.aliasi.corpus.parsers
Class GeniaEntityChunkParser

java.lang.Object
  extended by com.aliasi.corpus.Parser<H>
      extended by com.aliasi.corpus.InputSourceParser<H>
          extended by com.aliasi.corpus.XMLParser<ObjectHandler<Chunking>>
              extended by com.aliasi.corpus.parsers.GeniaEntityChunkParser

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

@Deprecated
public class GeniaEntityChunkParser
extends XMLParser<ObjectHandler<Chunking>>

A GeniaEntityChunkParser provides an entity parser for the XML-formatted GENIA entity corpus.

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

Field Summary
static String GENIA_ENTITY_ELT
          Deprecated.  
static String GENIA_ENTITY_TYPE_ATT
          Deprecated.  
static String GENIA_SENTENCE_ELT
          Deprecated. The tag used for sentence elements in GENIA, namely sentence.
 
Constructor Summary
GeniaEntityChunkParser()
          Deprecated. Construct a GENIA entity chunk parser with no designated chunk handler.
GeniaEntityChunkParser(ObjectHandler<Chunking> handler)
          Deprecated. Construct a GENIA entity chunk parser with the specified chunk handler.
 
Method Summary
 ObjectHandler<Chunking> getChunkHandler()
          Deprecated. Use generic Parser.getHandler() instead.
protected  DefaultHandler getXMLHandler()
          Deprecated. Returns the embedded XML handler.
 String simplifyType(String originalGeniaType)
          Deprecated. Returns a simplified type for the specified original genia type.
 
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
 

Field Detail

GENIA_SENTENCE_ELT

public static final String GENIA_SENTENCE_ELT
Deprecated. 
The tag used for sentence elements in GENIA, namely sentence.

See Also:
Constant Field Values

GENIA_ENTITY_ELT

public static final String GENIA_ENTITY_ELT
Deprecated. 
See Also:
Constant Field Values

GENIA_ENTITY_TYPE_ATT

public static final String GENIA_ENTITY_TYPE_ATT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

GeniaEntityChunkParser

public GeniaEntityChunkParser()
                       throws SAXException
Deprecated. 
Construct a GENIA entity chunk parser with no designated chunk handler. Chunk handlers may be set later using the method Parser.setHandler(Handler).

Throws:
SAXException - If there is an error configuring the SAX XML reader required for parsing.

GeniaEntityChunkParser

public GeniaEntityChunkParser(ObjectHandler<Chunking> handler)
                       throws SAXException
Deprecated. 
Construct a GENIA entity chunk parser with the specified chunk handler. Chunk handlers may be reset later using the method Parser.setHandler(Handler).

Parameters:
handler - Chunk handler for the parser.
Throws:
SAXException - If there is an error configuring the SAX XML reader required for parsing.
Method Detail

getChunkHandler

@Deprecated
public ObjectHandler<Chunking> getChunkHandler()
Deprecated. Use generic Parser.getHandler() instead.

Returns the chunk handler for this parser. The result will be the same as calling the superclass method Parser.getHandler(), but the result in this case is cast to type ObjectHandler<Chunking>.

Returns:
The chunk handler for this sentence parser.

getXMLHandler

protected DefaultHandler getXMLHandler()
Deprecated. 
Returns the embedded XML handler. This method implements the required method for the abstract superclass XMLParser.

Specified by:
getXMLHandler in class XMLParser<ObjectHandler<Chunking>>
Returns:
The XML handler for this class.

simplifyType

public String simplifyType(String originalGeniaType)
Deprecated. 
Returns a simplified type for the specified original genia type. No tags are lost; they're just shortened in form. Override this method in a subclass to remove type simplification.

Parameters:
originalGeniaType - Original type from Genia.
Returns:
Simplified entity type.