Create Map files (mapping tables)
masterMap files are UTF8-encoded, comma-delimited CSV files used for direct G2P conversion.
Format Requirements
- Header: The first row must be a header (e.g.,
Orth,Phon) and is discarded during processing. - Columns: Two columns separated by a comma. Column 1 is the orthographic sequence; Column 2 is the phonetic sequence.
- Uniqueness: An orthographic form may only occur once in the file. Multiple orthographic forms may map to the same phonetic form.
- Greedy Matching: Matching is greedy. If one orthographic form is a prefix of another, the longer form has priority.
- Fallback: If no prefix matches, the first character of the orthographic form is appended to the phonetic form as-is, and processing continues with the remainder of the string.
Orth,Phon
a,a
b,b
ch,tʃ