|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.annotation.Label
public class Label
Field Summary | |
---|---|
private double |
end
|
private java.lang.String |
label
|
static java.util.Set<java.lang.String> |
SILENCE
set of predefined labels that are to be understood as silence |
private double |
start
|
private static java.util.List<java.util.regex.Pattern> |
tgPatterns
|
Constructor Summary | |
---|---|
Label(double s,
double e,
java.lang.String l)
construct a label from given start and end times, with the given label text |
|
Label(Label l)
construct a label from another label |
|
Label(java.lang.String l)
construct a label with start and end set to NaN |
Method Summary | |
---|---|
double |
getDuration()
in seconds |
double |
getEnd()
in seconds |
java.lang.String |
getLabel()
the label itself |
double |
getStart()
in seconds |
boolean |
isSilence()
whether the label appears to mark a silence |
(package private) static Label |
newFromTextGridLines(java.util.List<java.lang.String> lines)
factory for labels from textgrid lines |
java.lang.StringBuilder |
toMbrola()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Set<java.lang.String> SILENCE
private final double start
private final double end
private final java.lang.String label
private static java.util.List<java.util.regex.Pattern> tgPatterns
Constructor Detail |
---|
public Label(double s, double e, java.lang.String l)
public Label(java.lang.String l)
public Label(Label l)
Method Detail |
---|
public double getStart()
public double getEnd()
public double getDuration()
public java.lang.String getLabel()
public boolean isSilence()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.StringBuilder toMbrola()
static Label newFromTextGridLines(java.util.List<java.lang.String> lines) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |