Textractor API textractor-720 (20091120123250)

textractor.learning
Class AnnotationFormatWriter

java.lang.Object
  extended by textractor.learning.AnnotationFormatWriter

public final class AnnotationFormatWriter
extends Object

Writes text in a format suitable for human annotation and machine parsing. The format presents each text fragment as in the sample below:

 --- identifier ---  < enter here properties as inferred from evidence in the text below:
 text fragment (possibly multiple lines)
 
An actual example will look like this:
 --- 1 ---  < enter here properties as inferred from evidence in the text below:
 However, two types of mutants were constructed one
 bears the R79K mutation on both the dAK and dGK subunits, while the
 other has the R79K mutation on the dGK subunit only (R79K:dGK).
 --- 2 ---  < enter here properties as inferred from evidence in the text below:
Therefore, the R79K substitution seems to
 have a greater effect on dGuo binding than on that of dAdo, but dGK
 modification appears to produce a stimulatory conformational effect on
 the opposite subunit, resembling the known unidirectional activation of
 dAK by either dGuo or dGTP.
 class of enzymes.
 
Creation Date: Jan 15, 2004 Creation Time: 1:39:20 PM

Author:
Fabien Campagne

Constructor Summary
AnnotationFormatWriter(DocumentIndexManager docmanager, Writer writer, boolean is_wrapping)
          Constructs an instance to write the format to the given writer.
 
Method Summary
 void flush()
           
 void writeAnnotation(DoubleTermAnnotation annotation)
           
 void writeAnnotation(DoubleTermAnnotation annotation, String annotationTypeString)
           
 void writeAnnotation(SingleTermAnnotation annotation)
           
 void writeAnnotation(SingleTermAnnotation annotation, String annotationTypeString)
           
 void writeFileHeader(TextFragmentAnnotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFormatWriter

public AnnotationFormatWriter(DocumentIndexManager docmanager,
                              Writer writer,
                              boolean is_wrapping)
Constructs an instance to write the format to the given writer.

Parameters:
writer - The formatted text fragments will be written to.
is_wrapping -
Method Detail

writeAnnotation

public void writeAnnotation(SingleTermAnnotation annotation)
                     throws IOException
Throws:
IOException

writeAnnotation

public void writeAnnotation(SingleTermAnnotation annotation,
                            String annotationTypeString)
                     throws IOException
Throws:
IOException

writeAnnotation

public void writeAnnotation(DoubleTermAnnotation annotation)
                     throws IOException
Throws:
IOException

writeAnnotation

public void writeAnnotation(DoubleTermAnnotation annotation,
                            String annotationTypeString)
                     throws IOException
Parameters:
annotation -
annotationTypeString -
Throws:
IOException

writeFileHeader

public void writeFileHeader(TextFragmentAnnotation annotation)
                     throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

Textractor API textractor-720 (20091120123250)

Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.