public class SimpleTranscript extends java.lang.Object implements Transcript
Constructor and Description |
---|
SimpleTranscript(Dictionary dictionary,
boolean isExact)
Constructor for the SimpleTranscript.
|
SimpleTranscript(java.lang.String transcript)
Constructor for the SimpleTranscript.
|
SimpleTranscript(java.lang.String transcript,
Dictionary dictionary,
boolean isExact)
Constructor for the SimpleTranscript.
|
SimpleTranscript(java.lang.String transcript,
Dictionary dictionary,
boolean isExact,
java.lang.String wordSeparator)
Constructor for the SimpleTranscript.
|
Modifier and Type | Method and Description |
---|---|
Dictionary |
getDictionary()
Gets the transcript's dictionary.
|
java.lang.String |
getTranscriptText()
Gets the transcription.
|
boolean |
hasMoreWords()
Return whether there are more words.
|
void |
initialize(Dictionary dictionary,
boolean isExact)
Initializes the SimpleTranscript with dictionary and exact flag.
|
boolean |
isExact()
Returns whether the transcript is exact.
|
java.lang.String |
nextWord()
Returns the next word.
|
int |
numberOfWords()
Get the number of words in the transcription.
|
void |
startWordIterator()
Start the iterator for the words in the transcription.
|
java.lang.String |
toString()
Returns a string representation of this transcript.
|
public SimpleTranscript(java.lang.String transcript)
transcript
- this transcript's textpublic SimpleTranscript(Dictionary dictionary, boolean isExact)
dictionary
- this transcript's dictionaryisExact
- whether the transcription is exactpublic SimpleTranscript(java.lang.String transcript, Dictionary dictionary, boolean isExact, java.lang.String wordSeparator)
transcript
- this transcript's textdictionary
- this transcript's dictionaryisExact
- whether the transcription is exactwordSeparator
- string containing the word separator characters.public SimpleTranscript(java.lang.String transcript, Dictionary dictionary, boolean isExact)
transcript
- this transcript's textdictionary
- this transcript's dictionaryisExact
- whether the transcription is exactpublic void initialize(Dictionary dictionary, boolean isExact)
dictionary
- this transcript's dictionaryisExact
- whether the transcription is exactpublic java.lang.String getTranscriptText()
getTranscriptText
in interface Transcript
public Dictionary getDictionary()
getDictionary
in interface Transcript
public boolean isExact()
isExact
in interface Transcript
public int numberOfWords()
numberOfWords
in interface Transcript
public void startWordIterator()
startWordIterator
in interface Transcript
public boolean hasMoreWords()
hasMoreWords
in interface Transcript
public java.lang.String nextWord()
nextWord
in interface Transcript
public java.lang.String toString()
toString
in class java.lang.Object