G2P Mapping Configuration
defining mappings for Python-based grapheme-to-phoneme engine 'g2p'
| Type | object |
|---|---|
| File match |
config-g2p.yaml
config-g2p.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/g2p-mapping-configuration/latest.json |
| Source | https://raw.githubusercontent.com/roedoejet/g2p/main/g2p/mappings/.schema/g2p-config-schema-2.3.json |
Versions
Validate with Lintel
npx @lintel/lintel check
Type:
object
This is the format used by g2p for configuring mappings.
Properties
Definitions
MAPPING_TYPE
string
Mapping
object
Class for lookup tables
processed
boolean
parent_dir
string | null
id
string | null
in_lang
string
out_lang
string
language_name
string | null
display_name
string | null
as_is
boolean | null
case_sensitive
boolean
case_equivalencies
object
{}
preserve_case
boolean
escape_special
boolean
norm_form
NORM_FORM_ENUM string
out_delimiter
string
reverse
boolean
rule_ordering
RULE_ORDERING_ENUM string
prevent_feeding
boolean
type
MAPPING_TYPE | null
alignments
string[]
[]
alignments_path
string | null
authors
string[] | null
abbreviations
Record<string, string[]>
{}
abbreviations_path
string | null
rules
Rule[]
[]
rules_path
string | null
hf_model_identifier
string | null
hf_model_filepath
string | null
neural_model_handler
NEURAL_MODEL_HANDLER | null
neural_kwargs
object | null
NEURAL_MODEL_HANDLER
string
NORM_FORM_ENUM
string
RULE_ORDERING_ENUM
string
Rule
object
in
string
required
out
string
required
context_before
string
context_after
string
prevent_feeding
boolean
match_pattern
string | null
intermediate_form
string | null
comment
string | null