evaluation
Class AnnotationReader

java.lang.Object
  extended by evaluation.AnnotationReader

public class AnnotationReader
extends java.lang.Object

Class for reading annotation files

Author:
Mateusz Kopec

Nested Class Summary
static class AnnotationReader.SegmentAnnotation
          Annotation of given segment
 
Constructor Summary
AnnotationReader(java.lang.String annotationFilename, java.util.List<java.lang.String> annotatorsNames)
          Constructor
 
Method Summary
 java.util.List<java.lang.String> getAnnotatorsNames()
          Gets descriptions of methods used for annotation
 AnnotationReader.SegmentAnnotation getNextTaggedSegment()
          Gets next annotation
 void setCurrentCorpusText(corpusapi.CorpusText ct)
          Sets reader for annotation file of given corpus text
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationReader

public AnnotationReader(java.lang.String annotationFilename,
                        java.util.List<java.lang.String> annotatorsNames)
Constructor

Parameters:
annotationFilename - filename of annotation files
annotatorsNames - methods which responses are in the files
Method Detail

setCurrentCorpusText

public void setCurrentCorpusText(corpusapi.CorpusText ct)
                          throws java.io.IOException
Sets reader for annotation file of given corpus text

Parameters:
ct - corpus text
Throws:
java.io.IOException

getNextTaggedSegment

public AnnotationReader.SegmentAnnotation getNextTaggedSegment()
                                                        throws java.io.IOException
Gets next annotation

Returns:
annotation
Throws:
java.io.IOException

getAnnotatorsNames

public java.util.List<java.lang.String> getAnnotatorsNames()
Gets descriptions of methods used for annotation

Returns:
list of descriptions