class_docstr: Decoder interface wrapper for CTCPrefixScore.
class_docstr_tok: ["Decoder","interface","wrapper","for","CTCPrefixScore","."]
docstr: Extend state for decoding.
  
  This extension is for streaming decoding
  as in Eq (14) in https://arxiv.org/abs/2006.14941
  
  Args:
      state: The states of hyps
  
  Returns: exteded state
docstr_tok: ["Extend","state","for","decoding",".","This","extension","is","for","streaming","decoding","as","in","Eq","(","14",")","in","https",":","\/\/arxiv.org\/abs\/2006.14941","Args",":","state",":","The","states","of","hyps","Returns",":","exteded","state"]
code: def extend_state(self, state):
      """Extend state for decoding.
  
      This extension is for streaming decoding
      as in Eq (14) in https://arxiv.org/abs/2006.14941
  
      Args:
          state: The states of hyps
  
      Returns: exteded state
  
      """
      new_state = []
      for s in state:
          new_state.append(self.impl.extend_state(s))
  
      return new_state
  
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 8 for calling the CTCPrefixScorer obj's underlying member method code with example usage: obj.extend_state(state) and returns: new_state