Class GENIAParser
java.lang.Object
GENIAParser
public class GENIAParser
- extends java.lang.Object
This class invokes the parsing of a GOLD-document.
- See Also:
GENIAHandler
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 |
file
public java.io.File file
handler
public GENIAHandler handler
GENIAParser
public GENIAParser(java.io.File file)
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