edu.washington.cs.knowitall.extractor.conf
Class LabeledBinaryExtractionWriter

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.LabeledBinaryExtractionWriter

public class LabeledBinaryExtractionWriter
extends java.lang.Object

Used for writing LabeledBinaryExtraction objects to plain text. See the documentation for LabeledBinaryExtractionReader for details on the format used.

Author:
afader

Constructor Summary
LabeledBinaryExtractionWriter(java.io.OutputStream stream)
          Constructs a new writer to the given stream.
 
Method Summary
 void writeExtraction(LabeledBinaryExtraction extr)
          Writes the given labeled extraction to the output stream.
 void writeExtractions(java.lang.Iterable<LabeledBinaryExtraction> extrs)
          Writes the given labeled extractions to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabeledBinaryExtractionWriter

public LabeledBinaryExtractionWriter(java.io.OutputStream stream)
                              throws java.io.IOException
Constructs a new writer to the given stream.

Parameters:
stream -
Throws:
java.io.IOException
Method Detail

writeExtractions

public void writeExtractions(java.lang.Iterable<LabeledBinaryExtraction> extrs)
                      throws java.io.IOException
Writes the given labeled extractions to the output stream.

Parameters:
extrs -
Throws:
java.io.IOException

writeExtraction

public void writeExtraction(LabeledBinaryExtraction extr)
                     throws java.io.IOException
Writes the given labeled extraction to the output stream.

Parameters:
extr -
Throws:
java.io.IOException