class_docstr: Max. phonological unit, contains phones and triggers alternations.
docstr: Assigns left and right contexts for every phone
docstr_tok: ["Assigns","left","and","right","contexts","for","every","phone"]
code: def _refresh(self):
      """
      Assigns left and right contexts for every phone
      """
      for n in range(len(self.phones)):
          p = self.phones[n]
          if n != 0:
              p.left = self.phones[n - 1]
          else:
              p.left = Phone("#")
          if n != len(self.phones) - 1:
              p.right = self.phones[n + 1]
          else:
              p.right = Phone("#")
  
imports: import re
  import unicodedata
  from typing import List
  from nltk.tokenize import wordpunct_tokenize
  from cltk.core.cltk_logger import logger
label_desc: Use image node_id 2 for calling the Word obj's underlying member method code with example usage: obj._refresh() without return types