|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocBase
edu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocXMLBase
edu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocACEPhase2
public class DocACEPhase2
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocBase |
---|
DocBase.PosSource |
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocBase |
---|
goodEnds, goodStarts, m_annotationAuthor, m_baseFN, m_bNeedsCasing, m_caser, m_dateTime, m_docID, m_docType, m_encoding, m_headline, m_slug, m_source, m_text, m_version, medEnds, totalMentions |
Constructor Summary | |
---|---|
DocACEPhase2()
Default constructor: Not recommended. |
|
DocACEPhase2(java.lang.String filename)
Loads filename file and reads in the xml representation. |
|
DocACEPhase2(java.lang.String filename,
LBJ2.classify.Classifier caser)
|
Method Summary | |
---|---|
protected java.lang.String |
getBaseFilename(java.lang.String filename)
Trim possible extension from file. |
protected Entity |
loadEntity(org.w3c.dom.Node nEntity)
Loads an entity from an xml representation and returns it. |
protected Chunk |
processChunk(org.w3c.dom.Element element)
Load a chunk. |
protected java.lang.String |
toXMLString(Chunk c)
|
protected java.lang.String |
toXMLString(Entity e)
|
void |
write(boolean usePredictions)
Writes this Doc in the appropriate format. |
void |
write(java.lang.String filenameBase,
boolean usePredictions)
Writes this Doc in the appropriate format. |
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.docs.DocXMLBase |
---|
getOptAttrib, getShortEID, loadRelation, loadXML, processAttributes, processEntityMention, toXMLString, toXMLString, toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public DocACEPhase2(java.lang.String filename) throws XMLException
filename
- The name of the xml file to load.
XMLException
public DocACEPhase2(java.lang.String filename, LBJ2.classify.Classifier caser) throws XMLException
XMLException
public DocACEPhase2()
Method Detail |
---|
protected Entity loadEntity(org.w3c.dom.Node nEntity) throws XMLException
loadEntity
in class DocXMLBase
XMLException
protected Chunk processChunk(org.w3c.dom.Element element) throws XMLException
processChunk
in class DocXMLBase
element
- An element containing a charseq Element.
XMLException
protected java.lang.String getBaseFilename(java.lang.String filename)
DocXMLBase
getBaseFilename
in class DocXMLBase
public void write(boolean usePredictions)
Doc
write
in interface Doc
write
in class DocXMLBase
usePredictions
- Whether predicted mentions and entities
should be written.public void write(java.lang.String filenameBase, boolean usePredictions)
Doc
write
in interface Doc
write
in class DocXMLBase
filenameBase
- The name of the target file.usePredictions
- Whether predicted mentions and entities
should be written.protected java.lang.String toXMLString(Entity e)
protected java.lang.String toXMLString(Chunk c)
toXMLString
in class DocXMLBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |