class_docstr: Convert chord symbol sequences to integer indices.
class_docstr_tok: ["Convert","chord","symbol","sequences","to","integer","indices","."]
docstr: Initialize a TextChordsEncoder object.
  
  Encodes chord symbols using a vocabulary of triads. Indices 0 and 1 are
  reserved and unused, and the remaining 48 + 1 indices represent each of 4
  triad types over each of 12 roots, plus "no chord".
  
  Args:
    steps_per_quarter: Number of steps per quarter at which to quantize.
code: def __init__(self, steps_per_quarter):
      """Initialize a TextChordsEncoder object.
  
      Encodes chord symbols using a vocabulary of triads. Indices 0 and 1 are
      reserved and unused, and the remaining 48 + 1 indices represent each of 4
      triad types over each of 12 roots, plus "no chord".
  
      Args:
        steps_per_quarter: Number of steps per quarter at which to quantize.
      """
      self._steps_per_quarter = steps_per_quarter
      self._encoding = note_seq.TriadChordOneHotEncoding()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tempfile
  import note_seq
  from note_seq import performance_lib
  import pygtrie
  from tensor2tensor.data_generators import text_encoder
label_desc: Use image node_id 1 to create a new TextChordsEncoder object from inherited base classes: object with example: obj = TextChordsEncoder(steps_per_quarter)