inpro.incremental.unit
Class TextualWordIU
java.lang.Object
inpro.incremental.unit.IU
inpro.incremental.unit.WordIU
inpro.incremental.unit.TextualWordIU
- All Implemented Interfaces:
- java.lang.Comparable<IU>
public class TextualWordIU
- extends WordIU
Methods inherited from class inpro.incremental.unit.WordIU |
appendMaryXML, getAVPairs, getFirstSegment, getLastSegment, getSegments, getValues, getWER, hasAVPairs, isBackchannel, isSilence, pronunciationEquals, removeSilentWords, setAVPairs, shiftBy, spellingEqual, spellingEquals, toMbrolaLines, toPayLoad, updateSegments, wordsToString |
Methods inherited from class inpro.incremental.unit.IU |
addNextSameLevelLink, addUpdateListener, commit, compareTo, connectSLL, deepToString, duration, equals, getAge, getAmongNextSameLevelLinks, getCreationTime, getID, getNextSameLevelLink, getNextSameLevelLinks, getOngoingGroundedIU, getProgress, getSameLevelLink, ground, groundedIn, groundIn, groundIn, grounds, hashCode, isCommitted, isCompleted, isOngoing, isRevoked, isUpcoming, notifyListeners, payloadEquals, removeAllNextSameLevelLinks, removeGrin, removeGrin, reorderNextSameLevelLink, revoke, setAsTopNextSameLevelLink, setSameLevelLink, toLabelLine, toString, toTEDviewXML, updateOnGrinUpdates |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FIRST_ATOMIC_WORD_IU
public static final TextualWordIU FIRST_ATOMIC_WORD_IU
counter
public int counter
TextualWordIU
public TextualWordIU(java.lang.String word,
TextualWordIU sll,
int counter)
TextualWordIU
public TextualWordIU(java.lang.String word,
TextualWordIU sll)
TextualWordIU
private TextualWordIU(java.lang.String word)
endTime
public double endTime()
- Description copied from class:
IU
- return the end of the timespan this IU covers
- Overrides:
endTime
in class IU
- Returns:
- NaN if time is unavailable, a time (in seconds) otherwise
startTime
public double startTime()
- Description copied from class:
IU
- return the start of the timespan this IU covers
- Overrides:
startTime
in class IU
- Returns:
- NaN if time is unavailable, a time (in seconds) otherwise
hasProsody
public boolean hasProsody()
- AtomicWordIUs have prosody if they end in either + or -
- Overrides:
hasProsody
in class WordIU
pronunciationEquals
public boolean pronunciationEquals(WordIU iu)
- Overrides:
pronunciationEquals
in class WordIU
pitchIsRising
public boolean pitchIsRising()
- precondition: only call this if hasProsody()
- Overrides:
pitchIsRising
in class WordIU
getWord
public java.lang.String getWord()
- Overrides:
getWord
in class WordIU
updateTimings
public void updateTimings(WordIU otherWord)
- update the end time of this word
- Overrides:
updateTimings
in class WordIU
- Parameters:
otherWord
- the word to base the new timings on