edu.columbia.cs.ref.tool.loader.document.impl.ace2005.resources
Class ACEDocument

java.lang.Object
  extended by edu.columbia.cs.ref.tool.loader.document.impl.ace2005.resources.ACEDocument

public class ACEDocument
extends java.lang.Object

Internal representation of the ACE 2005 Document.

This class should not be used to load documents to our framework. It is only for internal use.

This class is an adaptation of the class created by Razvan Bunescu used to load ACE 2003. The original class can be found in http://ace.cs.ohio.edu/~razvan/code/ssk_re.tar.gz

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
ACEDocument()
           
 
Method Summary
 java.util.Vector<ACEEntity> getEntities()
           
 java.util.Vector<ACERelation> getRelationships()
           
 java.util.List<Segment> getSegments()
           
 void include()
           
 void load(java.lang.String strFile)
           
 void loadSGM(java.lang.String strSGMFile)
           
 void loadXML(java.lang.String strXMLFile)
           
static void main_include(java.lang.String[] args)
           
 boolean overlap()
           
 void process(org.jdom.Element elem, java.util.TreeMap mapEntities, java.util.TreeMap mapEMentions)
           
 void processEntity(org.jdom.Element elem, java.util.TreeMap mapEntities, java.util.TreeMap mapEMentions)
           
 void processRelation(org.jdom.Element elem, java.util.TreeMap mapEntities, java.util.TreeMap mapEMentions)
           
 void removeRepetitions()
           
 void setSegments(java.util.List<Segment> mStrText)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACEDocument

public ACEDocument()
Method Detail

load

public void load(java.lang.String strFile)

removeRepetitions

public void removeRepetitions()

loadXML

public void loadXML(java.lang.String strXMLFile)

loadSGM

public void loadSGM(java.lang.String strSGMFile)

process

public void process(org.jdom.Element elem,
                    java.util.TreeMap mapEntities,
                    java.util.TreeMap mapEMentions)

processEntity

public void processEntity(org.jdom.Element elem,
                          java.util.TreeMap mapEntities,
                          java.util.TreeMap mapEMentions)

processRelation

public void processRelation(org.jdom.Element elem,
                            java.util.TreeMap mapEntities,
                            java.util.TreeMap mapEMentions)

overlap

public boolean overlap()

include

public void include()

main_include

public static void main_include(java.lang.String[] args)

getSegments

public java.util.List<Segment> getSegments()

setSegments

public void setSegments(java.util.List<Segment> mStrText)

getEntities

public java.util.Vector<ACEEntity> getEntities()

getRelationships

public java.util.Vector<ACERelation> getRelationships()