i6_core.g2p.apply

class i6_core.g2p.apply.ApplyG2PModelJob(*args, **kwargs)

Apply a trained G2P on a word list file

Parameters:
  • g2p_model (Path) –

  • word_list_file (Path) – text file with a word each line

  • variants_mass (float) –

  • variants_number (int) –

  • g2p_path (Optional[Path]) –

  • g2p_python (Optional[Path]) –

  • filter_empty_words (bool) – if True, creates a new lexicon file with no empty translated words

  • concurrent (int) – split up word list file to parallelize job into this many instances

filter()
classmethod hash(kwargs)
Parameters:

parsed_args (dict[str]) –

Returns:

hash for job given the arguments

Return type:

str

merge()
run(task_id)
split_word_list()
tasks()
Returns:

yields Task’s

Return type:

list[sisyphus.task.Task]