public class UnitizingStudyPrinter extends Object
1 2 2 r 0123456789012345678901234 0 ******** ****** 1 **** **That is, a continuum starting at 0, ending at 24, in which two raters identified two units. By defining a
PrintStream
, it is possible to
display a study on the console or to write the results to a text file.IUnitizingAnnotationStudy
Constructor and Description |
---|
UnitizingStudyPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
print(PrintStream out,
IUnitizingAnnotationStudy study)
Print a plain-text representation of the given unitizing study.
|
void |
printContinuum(PrintStream out,
IUnitizingAnnotationStudy study,
String prefix)
Prints an integer scale of the continuum used for the given unitzing
study.
|
void |
printUnitsForCategory(PrintStream out,
IUnitizingAnnotationStudy study,
Object category,
String prefix)
Iterate all raters, identify the corresponding annotation units, and
visualize them using
printUnitsForRater(PrintStream,
IUnitizingAnnotationStudy, int, Object, String) . |
void |
printUnitsForRater(PrintStream out,
IUnitizingAnnotationStudy study,
int raterIdx,
Object category,
String prefix)
Identifies all annotation units of the given rater which have been
coded with the given category and marks their boundaries using
asterisks.
|
public void printContinuum(PrintStream out, IUnitizingAnnotationStudy study, String prefix)
public void printUnitsForRater(PrintStream out, IUnitizingAnnotationStudy study, int raterIdx, Object category, String prefix)
printContinuum(
PrintStream, IUnitizingAnnotationStudy, String)
. Optionally, the
given prefix is printed left of the continuum scale and the output
is correctly indented.public void printUnitsForCategory(PrintStream out, IUnitizingAnnotationStudy study, Object category, String prefix)
printUnitsForRater(PrintStream,
IUnitizingAnnotationStudy, int, Object, String)
. Optionally, the given
prefix is printed left of the continuum scale and the output is
correctly indented.public void print(PrintStream out, IUnitizingAnnotationStudy study)
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.