annotation
Class AnnSensesTXT

java.lang.Object
  extended by annotation.AnnSensesTXT

public class AnnSensesTXT
extends java.lang.Object

Object representation of the file with annotation.

Author:
Mateusz Kopec

Constructor Summary
AnnSensesTXT(java.lang.String ctPath)
          Constructor
 
Method Summary
 void add(corpusapi.tei.TEISegment seg, java.util.List<java.lang.String> senseIds)
          Add annotation of multiple experts
 int getCount()
          Gets number of annotated segments
 void saveAsTxt(java.lang.String filename)
          Saves file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnSensesTXT

public AnnSensesTXT(java.lang.String ctPath)
Constructor

Parameters:
ctPath - path to the directory in which file is going to be created
Method Detail

add

public void add(corpusapi.tei.TEISegment seg,
                java.util.List<java.lang.String> senseIds)
Add annotation of multiple experts

Parameters:
seg - segment being annotated
senseIds - decisions of experts - chosen sense ids

saveAsTxt

public void saveAsTxt(java.lang.String filename)
Saves file

Parameters:
filename - name of the file

getCount

public int getCount()
Gets number of annotated segments

Returns:
number