docstr: Determines the word separators to be used
docstr_tok: ["Determines","the","word","separators","to","be","used"]
code: def _set_word_separator(self):
      """Determines the word separators to be used"""
      if self.hparams.phn_tokenize:
          word_separator_idx = self.hparams.token_space_index
          word_separator_base_idx = self.phoneme_encoder.lab2ind[" "]
      else:
          word_separator_base_idx = (
              word_separator_idx
          ) = self.phoneme_encoder.lab2ind[" "]
  
      self.hparams.homograph_cost.word_separator = word_separator_idx
      self.hparams.homograph_cost.word_separator_base = (
          word_separator_base_idx
      )
      self.hparams.homograph_extractor.word_separator = (
          word_separator_idx
      )
      self.hparams.homograph_extractor.word_separator_base = (
          word_separator_base_idx
      )
  
imports: from speechbrain.dataio.dataset import FilteredSortedDynamicItemDataset, DynamicItemDataset
  from speechbrain.dataio.sampler import BalancingDataSampler
  from speechbrain.utils.data_utils import undo_padding
  import datasets
  import logging
  import os
  import random
  import speechbrain
  import sys
  from enum import Enum
  from collections import namedtuple
  from hyperpyyaml import load_hyperpyyaml
  from functools import partial
  from speechbrain.utils.distributed import run_on_main
  from speechbrain.utils.pretrained import save_for_pretrained
  from speechbrain.lobes.models.g2p.dataio import enable_eos_bos, grapheme_pipeline, phoneme_pipeline, tokenizer_encode_pipeline, add_bos_eos, get_sequence_key, phonemes_to_label
  from speechbrain.dataio.wer import print_alignments
  from speechbrain.wordemb.util import expand_to_chars
  from io import StringIO
  from speechbrain.utils import hpopt
  import numpy
label_desc: Use image node_id 11 for calling the G2PBrain obj's underlying member method code with example usage: obj._set_word_separator() without return types