i6_core.g2p.convert

class i6_core.g2p.convert.BlissLexiconToG2PLexiconJob(*args, **kwargs)

Convert a bliss lexicon into a g2p compatible lexicon for training

Parameters:
  • bliss_lexicon (Path) –

  • include_pronunciation_variants (bool) – In case of multiple phoneme representations for one lemma, when this is false it outputs only the first phoneme

  • include_orthography_variants (bool) – In case of multiple orthographic representations for one lemma, when this is false it outputs only the first orth

run()
tasks()
Returns:

yields Task’s

Return type:

list[sisyphus.task.Task]

class i6_core.g2p.convert.G2POutputToBlissLexiconJob(*args, **kwargs)

Convert a g2p applied word list file (g2p lexicon) into a bliss lexicon

Parameters:
  • iv_bliss_lexicon (Path) – bliss lexicon as reference for the phoneme inventory

  • g2p_lexicon (Path) – from ApplyG2PModelJob.out_g2p_lexicon

  • merge (bool) – merge the g2p lexicon into the iv_bliss_lexicon instead of only taking the phoneme inventory

run()
tasks()
Returns:

yields Task’s

Return type:

list[sisyphus.task.Task]