marytts.signalproc.analysis
Class Labels

java.lang.Object
  extended by marytts.signalproc.analysis.AlignmentData
      extended by marytts.signalproc.analysis.Labels

public class Labels
extends AlignmentData

A collection of EST formatted labels with ascii text file input/output functionality

Author:
Oytun Türk

Field Summary
 Label[] items
           
 
Constructor Summary
Labels(int count)
           
Labels(Labels e)
           
Labels(Labels e, int startPos)
           
Labels(Labels e, int startPos, int endPos)
           
Labels(java.lang.String labelFile)
           
Labels(java.lang.String labelFile, boolean isRealisedDurationsFile)
           
 
Method Summary
 void initFromFile(java.lang.String file, boolean isRealisedDurationsFile)
           
 void initFromLabels(Labels e)
           
 void initFromLabels(Labels e, int startPos)
           
 void initFromLabels(Labels e, int startPos, int endPos)
           
static void main(java.lang.String[] args)
           
static Labels parseFromLines(java.lang.String[] lines, int startLine, int endLine)
           
static Labels parseFromLines(java.lang.String[] lines, int startLine, int endLine, int minimumItemsInOneLine)
           
 void print()
           
static Labels readESTLabelFile(java.lang.String labelFile)
           
static Labels readRealisedDurationsFile(java.lang.String labelFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

public Label[] items
Constructor Detail

Labels

public Labels(int count)

Labels

public Labels(Labels e)

Labels

public Labels(Labels e,
              int startPos)

Labels

public Labels(Labels e,
              int startPos,
              int endPos)

Labels

public Labels(java.lang.String labelFile)

Labels

public Labels(java.lang.String labelFile,
              boolean isRealisedDurationsFile)
Method Detail

initFromLabels

public void initFromLabels(Labels e)

initFromLabels

public void initFromLabels(Labels e,
                           int startPos)

initFromLabels

public void initFromLabels(Labels e,
                           int startPos,
                           int endPos)

initFromFile

public void initFromFile(java.lang.String file,
                         boolean isRealisedDurationsFile)

readESTLabelFile

public static Labels readESTLabelFile(java.lang.String labelFile)

readRealisedDurationsFile

public static Labels readRealisedDurationsFile(java.lang.String labelFile)

parseFromLines

public static Labels parseFromLines(java.lang.String[] lines,
                                    int startLine,
                                    int endLine)

parseFromLines

public static Labels parseFromLines(java.lang.String[] lines,
                                    int startLine,
                                    int endLine,
                                    int minimumItemsInOneLine)

print

public void print()

main

public static void main(java.lang.String[] args)