Class GENIAParser

java.lang.Object
  extended by GENIAParser

public class GENIAParser
extends java.lang.Object

This class invokes the parsing of a GOLD-document.

See Also:
GENIAHandler

Field Summary
 java.io.File file
           
 GENIAHandler handler
           
 
Constructor Summary
GENIAParser(java.io.File file)
           
 
Method Summary
 java.util.ArrayList getAbstracts()
          Access method to get the abstracts parsed by this parser.
 org.xml.sax.helpers.DefaultHandler getHandler()
          Access method to get the handler of this parser.
 void parseGENIA(java.io.File file)
          Creates a new parser, and starts this with the actual document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public java.io.File file

handler

public GENIAHandler handler
Constructor Detail

GENIAParser

public GENIAParser(java.io.File file)
Method Detail

parseGENIA

public void parseGENIA(java.io.File file)
Creates a new parser, and starts this with the actual document.

Parameters:
file - the xml-file containing the golden corpus

getHandler

public org.xml.sax.helpers.DefaultHandler getHandler()
Access method to get the handler of this parser.

Returns:
the handler of this document

getAbstracts

public java.util.ArrayList getAbstracts()
Access method to get the abstracts parsed by this parser.

Returns:
a list of abstracts parsed by this parser