be.ac.ucl.tele.ccg.jXDRS
Class XDRSParser

java.lang.Object
  extended by be.ac.ucl.tele.ccg.jXDRS.XDRSParser

public class XDRSParser
extends java.lang.Object

Read DRS from XML files

Future work:
implement all drs structures and types, optimize for speed, memory usage and code elegance

Field Summary
static java.lang.String CARD
          Description of the Field
static java.lang.String DATE
          Description of the Field
static java.lang.String DR
          Description of the Field
static java.lang.String DRS
          Description of the Field
static java.lang.String IMP
          Description of the Field
static java.lang.String INDEX
          Description of the Field
static java.lang.String NETAG
          Description of the Field
static java.lang.String NETAGS
          Description of the Field
static java.lang.String NOT
          Description of the Field
static java.lang.String OR
          Description of the Field
static java.lang.String POSTAG
          Description of the Field
static java.lang.String POSTAGS
          Description of the Field
static java.lang.String PRED
          Description of the Field
static java.lang.String PROP
          Description of the Field
static java.lang.String REL
          Description of the Field
static java.lang.String TIME
          Description of the Field
static java.lang.String TIMEX
          Description of the Field
static java.lang.String WHQ
          Description of the Field
static java.lang.String wINDEX
          Description of the Field
static java.lang.String WORDS
          Description of the Field
 
Constructor Summary
XDRSParser()
           
 
Method Summary
static DRS dRSElementToDRS(org.dom4j.Element eDrs, Utterance utt, java.util.HashMap allDRList)
          Parses a DRS element into a DRS structure (See UML)
static DRSContainer xDRSElementToDrsContainer(org.dom4j.Element xdrs)
          Parses the xdrs structure into a DRSContainer
static java.util.ArrayList xmlToDrs(org.dom4j.Document xmlDoc)
          Parses a complete XML DRS document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CARD

public static java.lang.String CARD
Description of the Field


DATE

public static java.lang.String DATE
Description of the Field


DR

public static java.lang.String DR
Description of the Field


DRS

public static java.lang.String DRS
Description of the Field


IMP

public static java.lang.String IMP
Description of the Field


INDEX

public static java.lang.String INDEX
Description of the Field


NETAG

public static java.lang.String NETAG
Description of the Field


NETAGS

public static java.lang.String NETAGS
Description of the Field


NOT

public static java.lang.String NOT
Description of the Field


OR

public static java.lang.String OR
Description of the Field


POSTAG

public static java.lang.String POSTAG
Description of the Field


POSTAGS

public static java.lang.String POSTAGS
Description of the Field


PRED

public static java.lang.String PRED
Description of the Field


PROP

public static java.lang.String PROP
Description of the Field


REL

public static java.lang.String REL
Description of the Field


TIME

public static java.lang.String TIME
Description of the Field


TIMEX

public static java.lang.String TIMEX
Description of the Field


WHQ

public static java.lang.String WHQ
Description of the Field


WORDS

public static java.lang.String WORDS
Description of the Field


wINDEX

public static java.lang.String wINDEX
Description of the Field

Constructor Detail

XDRSParser

public XDRSParser()
Method Detail

dRSElementToDRS

public static DRS dRSElementToDRS(org.dom4j.Element eDrs,
                                  Utterance utt,
                                  java.util.HashMap allDRList)
Parses a DRS element into a DRS structure (See UML)

Parameters:
eDrs - DRS element
utt - The utterance object from this drs
allDRList - Description of the Parameter
Returns:
A DRS object representation.
Future work:
Implement CARD and PROP ASAP

xDRSElementToDrsContainer

public static DRSContainer xDRSElementToDrsContainer(org.dom4j.Element xdrs)
Parses the xdrs structure into a DRSContainer

Parameters:
xdrs - XML xdrs element
Returns:
Description of the Return Value

xmlToDrs

public static java.util.ArrayList xmlToDrs(org.dom4j.Document xmlDoc)
                                    throws org.dom4j.DocumentException
Parses a complete XML DRS document

Parameters:
xmlDoc - Description of the Parameter
Returns:
An array list containing all the DRS's inside the document.
Throws:
org.dom4j.DocumentException - Description of the Exception


MIT style licence.