Package nzilbb.encoding
Class HTK2DISC
- java.lang.Object
-
- nzilbb.encoding.PhonemeTranslator
-
- nzilbb.encoding.HTK2DISC
-
- All Implemented Interfaces:
Function<String,String>
,UnaryOperator<String>
public class HTK2DISC extends PhonemeTranslator
Translates Hidden Markov Model Toolkit (HTK) dictionary pronunciations like t r _{ n s k r I p S _@ n. to CELEX-DISC-encoded transcriptions, like: tr{nskrIpS@nEssentially, spaces and underscores are removed.
This translator will also handle input that is IPA-encoded, e.g. mʌtnt͡ʃɔps ...becomes: m _ʌ t n̩ t͡ʃ _ɔ p s.
Mapping Source Destination Example - Author:
- Robert Fromont robert@fromont.net.nz
- See Also:
DISC2HTK
-
-
Constructor Summary
Constructors Constructor Description HTK2DISC()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(String source)
Translates a phonemic transcription from the source encoding to the destination encoding.-
Methods inherited from class nzilbb.encoding.PhonemeTranslator
getDestinationEncoding, getSourceEncoding
-
-