class_docstr: Scans Greek texts that already contain macronized
  (i.e., long and shorts) texts.
class_docstr_tok: ["Scans","Greek","texts","that","already","contain","macronized","(","i.e.",",","long","and","shorts",")","texts","."]
docstr: Remove most accent marks. This the circumflexes
  over alphas and iotas in the text since they mark
  vocalic quantity.
  
  Args:
      text: Text string with accents.
  
  Returns:
      Text string with only accents required for processing.
  
  >>> from cltk.prosody.grc import Scansion
  >>> unclean_accents = "νέος μὲν καὶ ἄπειρος, δικῶν ἔγωγε ἔτι. μὲν καὶ ἄπειρος."
  >>> Scansion()._clean_accents(unclean_accents)
  'νεος μεν και απειρος δικων εγωγε ετι. μεν και απειρος.'
docstr_tok: ["Remove","most","accent","marks",".","This","the","circumflexes","over","alphas","and","iotas","in","the","text","since","they","mark","vocalic","quantity",".","Args",":","text",":","Text","string","with","accents",".","Returns",":","Text","string","with","only","accents","required","for","processing",".",">",">",">","from","cltk.prosody.grc","import","Scansion",">",">",">","unclean_accents","=","``","\u03bd\u03ad\u03bf\u03c2","\u03bc\u1f72\u03bd","\u03ba\u03b1\u1f76","\u1f04\u03c0\u03b5\u03b9\u03c1\u03bf\u03c2",",","\u03b4\u03b9\u03ba\u1ff6\u03bd","\u1f14\u03b3\u03c9\u03b3\u03b5","\u1f14\u03c4\u03b9",".","\u03bc\u1f72\u03bd","\u03ba\u03b1\u1f76","\u1f04\u03c0\u03b5\u03b9\u03c1\u03bf\u03c2",".","''",">",">",">","Scansion","(",")","._clean_accents","(","unclean_accents",")","'\u03bd\u03b5\u03bf\u03c2","\u03bc\u03b5\u03bd","\u03ba\u03b1\u03b9","\u03b1\u03c0\u03b5\u03b9\u03c1\u03bf\u03c2","\u03b4\u03b9\u03ba\u03c9\u03bd","\u03b5\u03b3\u03c9\u03b3\u03b5","\u03b5\u03c4\u03b9",".","\u03bc\u03b5\u03bd","\u03ba\u03b1\u03b9","\u03b1\u03c0\u03b5\u03b9\u03c1\u03bf\u03c2",".","'"]
code: def _clean_accents(self, text: str) -> str:
      """Remove most accent marks. This the circumflexes
      over alphas and iotas in the text since they mark
      vocalic quantity.
  
      Args:
          text: Text string with accents.
  
      Returns:
          Text string with only accents required for processing.
  
      >>> from cltk.prosody.grc import Scansion
      >>> unclean_accents = "νέος μὲν καὶ ἄπειρος, δικῶν ἔγωγε ἔτι. μὲν καὶ ἄπειρος."
      >>> Scansion()._clean_accents(unclean_accents)
      'νεος μεν και απειρος δικων εγωγε ετι. μεν και απειρος.'
      """
      accents = {
          "ὲέἐἑἒἓἕἔ": "ε",
          "ὺύὑὐὒὓὔὕ": "υ",
          "ὸόὀὁὂὃὄὅ": "ο",
          "ὶίἰἱἲἳἵἴ": "ι",
          "ὰάἁἀἂἃἅἄᾳᾂᾃ": "α",
          "ὴήἠἡἢἣἥἤἧἦῆῄῂῇῃᾓᾒᾗᾖᾑᾐ": "η",
          "ὼώὠὡὢὣὤὥὦὧῶῲῴῷῳᾧᾦᾢᾣᾡᾠ": "ω",
          "ἶἷ": "ῖ",
          "ἆἇᾷᾆᾇ": "ᾶ",
          "ὖὗ": "ῦ",
      }
      text = self._clean_text(text)
      for char in text:
          for key in accents:
              if char in key:
                  accent = accents.get(key)
                  if accent:
                      text = text.replace(char, accent)
              else:
                  pass
      return text
  
file_path: cltk/src/cltk/prosody/grc.py
imports: from typing import List
  from cltk.core.cltk_logger import logger
label_desc: Use image node_id 4 for calling the Scansion obj's underlying member method code with example usage: obj._clean_accents(text) and returns: text