semeval.mapping
Class TigerParser

java.lang.Object
  extended by semeval.mapping.TigerParser

public class TigerParser
extends java.lang.Object

This parser parses an XML-file.

Author:
Fabian Shirokov

Constructor Summary
TigerParser()
          This creates a new instance of Parser.
 
Method Summary
 java.util.ArrayList<FrameLemmaPairFN> getFrameLemmaPairs()
           
 java.util.HashMap<java.lang.String,Lemma> getIdToLemma()
           
 void parseGraphFromFile(java.lang.String aFileName)
          This parses an XML document from the given file with our Handler and our parser.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TigerParser

public TigerParser()
            throws javax.xml.parsers.ParserConfigurationException,
                   org.xml.sax.SAXException
This creates a new instance of Parser.

Throws:
javax.xml.parsers.ParserConfigurationException - if there is a problem with the parser factory
org.xml.sax.SAXException - if there is a problem when creating the parser
Method Detail

getFrameLemmaPairs

public java.util.ArrayList<FrameLemmaPairFN> getFrameLemmaPairs()

getIdToLemma

public java.util.HashMap<java.lang.String,Lemma> getIdToLemma()

parseGraphFromFile

public void parseGraphFromFile(java.lang.String aFileName)
                        throws java.io.IOException,
                               org.xml.sax.SAXException
This parses an XML document from the given file with our Handler and our parser.

Parameters:
aFileName - a String with the file name to read the XML document from
Throws:
java.io.IOException - if there is a problem when reading the file
org.xml.sax.SAXException - if there is a problem when parsing the XML document