Package nzilbb.encoding
Class DISC2Unisyn
- java.lang.Object
-
- nzilbb.encoding.PhonemeTranslator
-
- nzilbb.encoding.DISC2Unisyn
-
- All Implemented Interfaces:
Function<String,String>
,UnaryOperator<String>
public class DISC2Unisyn extends PhonemeTranslator
Translates CELEX-DISC-encoded transcriptions like "tr{n-'skrIp-S@n to Unisyn-encoded phonemic transcriptions like ~ t r a n . * s k r i p . sh @ n.This converts not only the phonemes, but also syllabification and stress markers:
'
→*
- primary stress"
→~
- secondary stress,
→-
- tertiary stress-
→.
- syllable boundary
Mapping DISC Unisyn Example Stress and syllabification ' → * primary stress " → ~ secondary stress , → - tertiary stress - → . syllable boundary Vowels E → e DRESS { → a TRAP # → ah START 5 → ou GOAT but a monophthong for edi Q → o LOT $ → oo THOUGHT (but a diphthong in some en-US) i → ii FLEECE I → i KIT @ → @ schwa V → uh STRUT U → u FOOT u → uu GOOSE 1 → ei FACE 2 → ai PRICE 4 → oi CHOICE 6 → ow MOUTH 7 → i@ NEAR 3 → @@r NURSE 8 → eir SQUARING (actually a monophthong in many) 9 → ur JURY Missing c → o LOT q → o LOT 0 → o LOT ~ → o LOT Consonants j → y J → ch _ → jh S → sh Z → zh T → th D → dh L → t^ butter/merry flap F → m! chasm H → n! mission N → ng P → l! cattle - Author:
- Robert Fromont robert@fromont.net.nz
- See Also:
Unisyn2DISC
-
-
Constructor Summary
Constructors Constructor Description DISC2Unisyn()
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
-
-