Package nzilbb.encoding
Class DISC2SAMPA
- java.lang.Object
-
- nzilbb.encoding.PhonemeTranslator
-
- nzilbb.encoding.DISC2SAMPA
-
- All Implemented Interfaces:
Function<String,String>
,UnaryOperator<String>
public class DISC2SAMPA extends PhonemeTranslator
Translates CELEX-DISC-encoded transcriptions like str1n_ to SAMPA-encoded phonemic transcriptions like streIndZ.Mapping DISC SAMPA Vowels i → i: # → A: $ → O: u → u: 3 → 3: 1 → eI 2 → aI 4 → OI 5 → @U 6 → aU 7 → I@ 8 → E@ 9 → U@ c → {~ q → A~: 0 → {~: ~ → O~: Consonants J → tS _ → dZ C → N, F → m, H → n, P → l, R → r* - Author:
- Robert Fromont robert@fromont.net.nz
- See Also:
SAMPA2DISC
-
-
Constructor Summary
Constructors Constructor Description DISC2SAMPA()
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
-
-