public class Word extends GenericModel
SpeechToText
.Modifier and Type | Class and Description |
---|---|
static class |
Word.Type
The Enum Type.
|
Constructor and Description |
---|
Word()
Instantiates a new word.
|
Word(String word,
String displayAs,
String... soundsLike)
Instantiates a new word.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayAs()
Gets the spelling of the custom word that the service uses to display the word in a transcript.
|
List<String> |
getSoundsLike()
Gets the sounds like.
|
String |
getWord()
Gets the spelling of the word is used to train the model.
|
void |
setDisplayAs(String displayAs)
Sets the spelling of the custom word that the service uses to display the word in a transcript.
|
void |
setSoundsLike(List<String> soundsLike)
Sets the sounds like.
|
void |
setWord(String word)
Sets the word.
|
equals, hashCode, toString
public Word()
public Word(String word, String displayAs, String... soundsLike)
word
- the spelling of the word is used to train the model.displayAs
- the spelling of the custom word that the service uses to display the word in a transcript.soundsLike
- An array of pronunciations for the custom word.public String getDisplayAs()
public List<String> getSoundsLike()
public String getWord()
public void setDisplayAs(String displayAs)
displayAs
- The display_aspublic void setSoundsLike(List<String> soundsLike)
soundsLike
- The sounds_likepublic void setWord(String word)
word
- The wordCopyright © 2015–2016 IBM Watson. All rights reserved.