class_docstr: Max. phonological unit, contains phones and triggers alternations.
class_docstr_tok: ["Max",".","phonological","unit",",","contains","phones","and","triggers","alternations","."]
docstr: Depending on the syllabify and accentuate parameters
  Prints an appropriately marked up version of the transcription
  
  :param syllabify:
  :param accentuate:
  :return:
docstr_tok: ["Depending","on","the","syllabify","and","accentuate","parameters","Prints","an","appropriately","marked","up","version","of","the","transcription",":","param","syllabify",":",":","param","accentuate",":",":","return",":"]
code: def _print_ipa(self, syllabify, accentuate):
      """
      Depending on the syllabify and accentuate parameters
      Prints an appropriately marked up version of the transcription
  
      :param syllabify:
      :param accentuate:
      :return:
      """
  
      out = ""
      if syllabify:
          syllables = self.syllabify()
          # the ultima is the final syllable
          ultima = syllables[-1]
          # identify which syllable has stress and store index as accent
          if accentuate:
              # one syllable words have ultimate stress
              if len(syllables) == 1:
                  accent = -1
              # two syllable words have penultimate stress
              elif len(syllables) == 2:
                  accent = -2
              else:
                  # penult is second to last syllable
                  penult = syllables[-2]
                  # if penult is diphthong (long), penultimate stress
                  if len(penult[1]) > 1:
                      accent = -2
                  # if penult is long vowel, penultimate stress
                  elif "ː" in penult[1][0].ipa:
                      accent = -2
                  # if penult has coda (closed/long by position),
                  # penultimate stress
                  elif len(penult[2]) > 0:
                      accent = -2
                  # otherwise (penult is short) antepenultimate stress
                  else:
                      accent = -3
              # loop over syllables by index
              for x in range(len(syllables)):
                  s = syllables[x]
                  # if index matches accent index set above
                  if x - len(syllables) == accent:
                      # precede that syllable with
                      # IPA stress punctuation: '
                      out += "'"
                  # then, print IPA by syllable segment as usual
                  for n in s:
                      for p in n:
                          out += p.ipa
                  # seperate all syllables with IPA syllable punctuation: .
                  if s != ultima:
                      out += "."
          # if no accentuation flag, proceed with syllabified printing
          else:
              for s in syllables:
                  for n in s:
                      for p in n:
                          out += p.ipa
                  # seperate all syllables with IPA syllable punctuation: .
                  if s != ultima:
                      out += "."
      # if no syllabification flag, proceed with
      # unsyllabified IPA printing
      else:
          for p in self.phones:
              out += p.ipa
      return out
  
imports: import re
  import unicodedata
  from typing import List
  from nltk.tokenize import wordpunct_tokenize
  from cltk.core.cltk_logger import logger
  from cltk.prosody.lat import macronizer
label_desc: Use image node_id 19 for calling the Word obj's underlying member method code with example usage: obj._print_ipa(syllabify, accentuate) and returns: out