org.itc.irst.tcc.sre
Class RelationExtractor
java.lang.Object
org.itc.irst.tcc.sre.RelationExtractor
public class RelationExtractor
- extends java.lang.Object
TO DO
- Since:
- 1.0
- Version:
- %I%, %G%
- Author:
- Claudio Giuliano
Field Summary |
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the
Logger instance named RelationExtractor . |
(package private) java.util.List |
pred
|
private SentenceSet |
sentenceSet
|
Constructor Summary |
RelationExtractor(java.io.File refFile,
java.io.File predFile)
Creates a RelationExtractor object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- Define a static logger variable so that it references the
Logger instance named
RelationExtractor
.
sentenceSet
private SentenceSet sentenceSet
pred
java.util.List pred
RelationExtractor
public RelationExtractor(java.io.File refFile,
java.io.File predFile)
throws java.io.IOException
- Creates a
RelationExtractor
object.
- Throws:
java.io.IOException
extract
public RelationExtractor.RelationMap extract()
getSentenceID
private java.lang.String getSentenceID(java.lang.Object id)
findCandidate
private RelationExtractor.Relation findCandidate(Sentence sent)
readPredictionFile
private java.util.List readPredictionFile(java.io.File pred)
throws java.io.IOException
- Throws:
java.io.IOException
read
private java.util.List read(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception