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: Replace long and short values for each input syllable.
  
  Args:
      sentence_syllables: List of word tokens
  
  Returns:
      ``"˘"`` and ``"¯"`` to represent short and long syllables, respectively
  
  >>> from cltk.prosody.grc import Scansion
  >>> syllables_sentence = [["νε", "ος", "μεν", "και", "α", "πει", "ρος", "δι", "κων", "ε", "γω", "γε", "ε", "τι"], ["μεν", "και", "α", "πει", "ρος"]]
  >>> Scansion()._scansion(syllables_sentence)
  ['˘¯¯¯˘¯¯˘¯˘¯˘˘x', '¯¯˘¯x']
docstr_tok: ["Replace","long","and","short","values","for","each","input","syllable",".","Args",":","sentence_syllables",":","List","of","word","tokens","Returns",":","``","``","\u02d8","''","``","and","``","``","\u00af","''","``","to","represent","short","and","long","syllables",",","respectively",">",">",">","from","cltk.prosody.grc","import","Scansion",">",">",">","syllables_sentence","=","[","[","``","\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","''","]","]",">",">",">","Scansion","(",")","._scansion","(","syllables_sentence",")","[","'\u02d8\u00af\u00af\u00af\u02d8\u00af\u00af\u02d8\u00af\u02d8\u00af\u02d8\u02d8x","'",",","'\u00af\u00af\u02d8\u00afx","'","]"]
code: def _scansion(self, sentence_syllables: List[List[str]]) -> List[str]:
      """Replace long and short values for each input syllable.
  
      Args:
          sentence_syllables: List of word tokens
  
      Returns:
          ``"˘"`` and ``"¯"`` to represent short and long syllables, respectively
  
      >>> from cltk.prosody.grc import Scansion
      >>> syllables_sentence = [["νε", "ος", "μεν", "και", "α", "πει", "ρος", "δι", "κων", "ε", "γω", "γε", "ε", "τι"], ["μεν", "και", "α", "πει", "ρος"]]
      >>> Scansion()._scansion(syllables_sentence)
      ['˘¯¯¯˘¯¯˘¯˘¯˘˘x', '¯¯˘¯x']
      """
      scanned_text = list()
      for sentence in sentence_syllables:
          scanned_sent = list()
          for syllable in sentence:
              if self._long_by_position(
                  syllable, sentence
              ) or self._long_by_nature(syllable):
                  scanned_sent.append("¯")
              else:
                  scanned_sent.append("˘")
          if len(scanned_sent) > 1:
              del scanned_sent[-1]
              scanned_sent.append("x")
          scanned_text.append("".join(scanned_sent))
      return scanned_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 9 for calling the Scansion obj's underlying member method code with example usage: obj._scansion(sentence_syllables) and returns: scanned_text