|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.upenn.cis.pdtb.RelationLoaderImpl
| Constructor Summary | |
RelationLoaderImpl()
Creates a new instance of RelationLoaderImpl |
|
RelationLoaderImpl(boolean useStandoffPTB)
|
|
| Method Summary | |
PDTBRelationList |
loadRelations(java.io.Reader r,
java.lang.String rawString,
PTBTreeNode root)
Loads a PDTB file given the RAW text and a tree node whose children are the parse trees for each sentence. |
PDTBRelationList |
loadRelations(java.lang.String textFile,
java.lang.String ptbFile,
java.lang.String pdtbFile)
Loads a list of relations from a PDTB file, and its associated PTB and RAW files. |
PDTBRelationList |
loadRelations(java.lang.String textRoot,
java.lang.String ptbRoot,
java.lang.String pdtbRoot,
java.lang.String secNo,
java.lang.String fileNo)
Loads the PDTB file, and its associated RAW and PTB files given the section and file numbers. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelationLoaderImpl()
public RelationLoaderImpl(boolean useStandoffPTB)
| Method Detail |
public PDTBRelationList loadRelations(java.io.Reader r,
java.lang.String rawString,
PTBTreeNode root)
throws java.io.IOException
RelationLoader
loadRelations in interface RelationLoaderjava.io.IOException
public PDTBRelationList loadRelations(java.lang.String textFile,
java.lang.String ptbFile,
java.lang.String pdtbFile)
throws java.io.IOException
RelationLoader
loadRelations in interface RelationLoadertextFile - The name of the RAW file.ptbFile - The name of the PTB file.pdtbFile - The name of the PDTB file.
java.io.IOException
public PDTBRelationList loadRelations(java.lang.String textRoot,
java.lang.String ptbRoot,
java.lang.String pdtbRoot,
java.lang.String secNo,
java.lang.String fileNo)
throws java.io.IOException
RelationLoader
loadRelations in interface RelationLoadertextRoot - The root dir for RAW files.ptbRoot - The root dir for PTB files.pdtbRoot - The root dir for PDTB files.secNo - The section number as a string. Note that the section numbers
are 00, 01, 02...09, 10, 11, ... 24fileNo - The file number as a string. 00, 01, ...09, 10, 11, ... 99 are
possible.
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||