if (FALSE) {
## Upload the CMU Pronouncing Dictionary
loadLexicon(labbcat.url, "cmudict", " - ", "", ";", "Word - Pron", FALSE, "cmudict.txt")
## Create a layer that tags each token with its CMU Pronouncing Dictionary pronunciation
newLayer(labbcat.url, "pronunciation", "CMU Dict pronunciations encoded in ARPAbet",
annotator.id="FlatFileDictionary",
annotator.task.parameters=
"tokenLayerId=orthography&tagLayerId=phonemes&dictionary=cmudict:Word->Pron")
## Generate the pronunciation tags
generateLayer(labbcat.url, "pronunciation")
}
Run the code above in your browser using DataLab