class_docstr: Decoder interface wrapper for CTCPrefixScore.
class_docstr_tok: ["Decoder","interface","wrapper","for","CTCPrefixScore","."]
docstr: Initialize class.
  
  Args:
      ctc (torch.nn.Module): The CTC implementation.
          For example, :class:`espnet.nets.pytorch_backend.ctc.CTC`
      eos (int): The end-of-sequence id.
docstr_tok: ["Initialize","class",".","Args",":","ctc","(","torch.nn.Module",")",":","The","CTC","implementation",".","For","example",",",":","class",":","`","espnet.nets.pytorch_backend.ctc.CTC","`","eos","(","int",")",":","The","end-of-sequence","id","."]
code: def __init__(self, ctc: torch.nn.Module, eos: int):
      """Initialize class.
  
      Args:
          ctc (torch.nn.Module): The CTC implementation.
              For example, :class:`espnet.nets.pytorch_backend.ctc.CTC`
          eos (int): The end-of-sequence id.
  
      """
      self.ctc = ctc
      self.eos = eos
      self.impl = None
  
file_path: espnet/espnet/nets/scorers/ctc.py
imports: import numpy
  import torch
  from espnet.nets.ctc_prefix_score import CTCPrefixScore, CTCPrefixScoreTH
  from espnet.nets.scorer_interface import BatchPartialScorerInterface
label_desc: Use image node_id 1 to create a new CTCPrefixScorer object from inherited base classes: BatchPartialScorerInterface with example: obj = CTCPrefixScorer(ctc, eos)