|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Implementations of this assist in loading annotations into memory. The following conventions are assumed on a Linux/Unix filesystem (use the appropriate file separators on other platforms):
CorpusFileIterator| 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. |
| Method Detail |
public PDTBRelationList loadRelations(java.lang.String textFile,
java.lang.String ptbFile,
java.lang.String pdtbFile)
throws java.io.IOException
textFile - 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
textRoot - 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.IOException
public PDTBRelationList loadRelations(java.io.Reader r,
java.lang.String rawString,
PTBTreeNode root)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||