recoinx.clef
Class CLEFClient.TRECFormatWriter

java.lang.Object
java.io.Writer
java.io.BufferedWriter
recoinx.clef.CLEFClient.TRECFormatWriter
- Enclosing class:
- CLEFClient
- private class CLEFClient.TRECFormatWriter
- extends java.io.BufferedWriter
The TRECFormatWriter class extends the BufferedWriter to print to a File.
It provides methods that format retrieval results to the official TREC
format and print them.
- Version:
- 0.2.9
|
Method Summary |
void |
writeFormattedDoc(java.lang.String runID,
org.dom4j.Document doc)
Writes the specified Document if the root element discovered equals
CLEFRESULTLIST or CLEFMERGEDRESULTLIST.
The inidividual results are transformed into the official TREC result
format using the specified String as run ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLEFClient.TRECFormatWriter
public CLEFClient.TRECFormatWriter(java.io.Writer out)
- Creates a new TRECFormatWriter with the specified Writer.
writeFormattedDoc
public void writeFormattedDoc(java.lang.String runID,
org.dom4j.Document doc)
throws java.io.IOException
- Writes the specified Document if the root element discovered equals
CLEFRESULTLIST or CLEFMERGEDRESULTLIST.
The inidividual results are transformed into the official TREC result
format using the specified String as run ID.